Definition at line 155 of file dm3io.h.
int TagEntry::read |
( |
bool |
nodata = false | ) |
|
Definition at line 579 of file dm3io.cpp.
581 LOGVAR(
"TagEntry::read()");
587 nr = fread(&tag_type,
sizeof(
char), 1,
in); nr++;
590 LOGERR(
"TagEntry::read() invalid tag type: %d", tag_type);
595 nr = fread(&name_len,
sizeof(
short), 1,
in); nr++;
599 tmp_name =
new char[name_len + 1];
600 nr = fread(tmp_name, name_len, 1,
in); nr++;
601 tmp_name[name_len] =
'\0';
605 name_len =
static_cast < short >(parent_name.size() + 4);
606 tmp_name =
new char[name_len + 1];
610 name = string(tmp_name);
617 LOGVAR(
"\ntag name: '%s', len: %d, type: '%s'",
622 err = tag_data.read(nodata);
626 err = group.read(nodata);
static void become_big_endian(T *data, size_t n=1)
convert data from host byte order to big endian order.
const char * to_str(Gatan::TagData::Type type)
References EMAN::ByteOrder::become_big_endian(), DATA_TAG, EMAN::Gatan::TagGroup::get_entry_id(), EMAN::Gatan::TagGroup::get_name(), GROUP_TAG, in, LOGERR, LOGVAR, name, parent_group, EMAN::Gatan::TagData::read(), EMAN::Gatan::TagGroup::read(), tagtable, and EMAN::Gatan::to_str().
Referenced by EMAN::Gatan::TagGroup::read().