EMAN2
|
#include <dm3io.h>
Public Types | |
enum | Type { UNKNOWN = 0 , SHORT = 2 , INT = 3 , USHORT = 4 , UINT = 5 , FLOAT = 6 , DOUBLE = 7 , BOOLEAN = 8 , CHAR = 9 , OCTET = 10 , STRUCT = 15 , STRING = 18 , ARRAY = 20 } |
Public Member Functions | |
TagData (FILE *data_file, TagTable *tagtable, const string &tagname) | |
~TagData () | |
int | read (bool nodata=false) |
Private Member Functions | |
size_t | typesize () const |
size_t | typesize (int type) const |
int | read_any (bool nodata=false) |
vector< int > | read_array_types () |
int | read_array_data (vector< int >item_types, bool nodata=false) |
vector< int > | read_struct_types () |
string | read_native (bool is_value_stored) |
string | read_string (int size) |
Private Attributes | |
FILE * | in |
TagTable * | tagtable |
string | name |
Type | tag_type |
TagData::TagData | ( | FILE * | data_file, |
TagTable * | tagtable, | ||
const string & | tagname | ||
) |
int TagData::read | ( | bool | nodata = false | ) |
Definition at line 438 of file dm3io.cpp.
References EMAN::ByteOrder::become_big_endian(), in, LOGERR, LOGVAR, and read_any().
Referenced by EMAN::Gatan::TagEntry::read().
|
private |
Definition at line 389 of file dm3io.cpp.
References EMAN::Gatan::TagTable::add(), ARRAY, EMAN::ByteOrder::become_big_endian(), in, LOGVAR, name, read_array_data(), read_array_types(), read_native(), read_struct_types(), STRING, STRUCT, tag_type, tagtable, and EMAN::Gatan::to_str().
Referenced by read().
|
private |
Definition at line 296 of file dm3io.cpp.
References EMAN::Gatan::TagTable::add(), EMAN::Gatan::TagTable::add_data(), EMAN::ByteOrder::become_big_endian(), EMAN::Gatan::TagTable::become_host_endian(), ENTERFUNC, EXITFUNC, in, LOGERR, LOGVAR, name, portable_fseek(), read_string(), tagtable, typesize(), and USHORT.
Referenced by read_any().
|
private |
Definition at line 233 of file dm3io.cpp.
References ARRAY, EMAN::ByteOrder::become_big_endian(), in, LOGERR, LOGVAR, read_array_types(), read_struct_types(), STRUCT, and EMAN::Gatan::to_str().
Referenced by read_any(), and read_array_types().
|
private |
|
private |
Definition at line 263 of file dm3io.cpp.
References EMAN::Gatan::TagTable::become_host_endian(), in, and tagtable.
Referenced by read_array_data().
|
private |
Definition at line 354 of file dm3io.cpp.
References EMAN::ByteOrder::become_big_endian(), in, LOGVAR, and EMAN::Gatan::to_str().
Referenced by read_any(), and read_array_types().
|
private |
Definition at line 473 of file dm3io.cpp.
References tag_type, and typesize().
Referenced by read_array_data(), read_native(), and typesize().
|
private |
|
private |
Definition at line 130 of file dm3io.h.
Referenced by read(), read_any(), read_array_data(), read_array_types(), read_native(), read_string(), and read_struct_types().
|
private |
Definition at line 132 of file dm3io.h.
Referenced by read_any(), read_array_data(), and read_native().
|
private |
Definition at line 133 of file dm3io.h.
Referenced by read_any(), read_native(), and typesize().
|
private |
Definition at line 131 of file dm3io.h.
Referenced by read_any(), read_array_data(), read_native(), and read_string().