|
EMAN2
|
#include <dm4io.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 , OCTEU = 11 , OCTEV = 12 , STRUCT = 15 , STRING = 18 , ARRAY = 20 } |
Public Member Functions | |
| TagData (FILE *data_file, TagTable *tagtable, const string &tagname) | |
| ~TagData () | |
| int | read_tag_data (bool nodata=false, int image_index=0, int num_images=1) |
Private Member Functions | |
| size_t | typesize () const |
| size_t | typesize (int type) const |
| int | read_any (bool nodata=false, int image_index=0, int num_images=1) |
| vector< int > | read_array_types () |
| int | read_array_data (vector< int >item_types, bool nodata=false, int image_index=0, int num_images=1) |
| 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 |
| long long | tag_type |
| TagData::TagData | ( | FILE * | data_file, |
| TagTable * | tagtable, | ||
| const string & | tagname | ||
| ) |
|
private |
Definition at line 437 of file dm4io.cpp.
References EMAN::GatanDM4::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::GatanDM4::to_str().
Referenced by read_tag_data().
|
private |
Definition at line 327 of file dm4io.cpp.
References EMAN::GatanDM4::TagTable::add(), EMAN::GatanDM4::TagTable::add_data(), EMAN::ByteOrder::become_big_endian(), EMAN::GatanDM4::TagTable::become_host_endian(), ENTERFUNC, EXITFUNC, EMAN::GatanDM4::TagTable::get_num_images_found(), in, LOGERR, LOGVAR, name, portable_fseek(), read_string(), EMAN::GatanDM4::TagTable::set_num_images_found(), tagtable, typesize(), and USHORT.
Referenced by read_any().
|
private |
Definition at line 265 of file dm4io.cpp.
References ARRAY, EMAN::ByteOrder::become_big_endian(), in, LOGERR, LOGVAR, read_array_types(), read_struct_types(), STRUCT, and EMAN::GatanDM4::to_str().
Referenced by read_any(), and read_array_types().
|
private |
|
private |
Definition at line 294 of file dm4io.cpp.
References EMAN::GatanDM4::TagTable::become_host_endian(), in, and tagtable.
Referenced by read_array_data().
|
private |
Definition at line 402 of file dm4io.cpp.
References EMAN::ByteOrder::become_big_endian(), in, LOGVAR, and EMAN::GatanDM4::to_str().
Referenced by read_any(), and read_array_types().
| int TagData::read_tag_data | ( | bool | nodata = false, |
| int | image_index = 0, |
||
| int | num_images = 1 |
||
| ) |
Definition at line 493 of file dm4io.cpp.
References EMAN::ByteOrder::become_big_endian(), in, LOGERR, LOGVAR, and read_any().
Referenced by EMAN::GatanDM4::TagEntry::read_tag_entry().
|
private |
Definition at line 534 of file dm4io.cpp.
References tag_type, and typesize().
Referenced by read_array_data(), read_native(), and typesize().
|
private |
|
private |
Definition at line 135 of file dm4io.h.
Referenced by read_any(), read_array_data(), read_array_types(), read_native(), read_string(), read_struct_types(), and read_tag_data().
|
private |
Definition at line 137 of file dm4io.h.
Referenced by read_any(), read_array_data(), and read_native().
|
private |
Definition at line 138 of file dm4io.h.
Referenced by read_any(), read_native(), and typesize().
|
private |
Definition at line 136 of file dm4io.h.
Referenced by read_any(), read_array_data(), read_native(), and read_string().