|
EMAN2
|
#include <dm3io.h>
Public Member Functions | |
| TagTable () | |
| ~TagTable () | |
| void | add (const string &name, const string &value) |
| void | add_data (char *data) |
| string | get_string (const string &name) |
| int | get_int (const string &name) |
| float | get_float (const string &name) |
| double | get_double (const string &name) |
| int | get_xsize () const |
| int | get_ysize () const |
| int | get_datatype () const |
| char * | get_data () const |
| void | dump () const |
| template<class T > | |
| void | become_host_endian (T *data, int n=1) |
| void | set_endian (bool big_endian) |
Private Member Functions | |
| void | set_thumb_index (int i) |
Private Attributes | |
| int | img_index |
| bool | is_big_endian |
| std::map< string, string > | tags |
| vector< int > | x_list |
| vector< int > | y_list |
| vector< int > | datatype_list |
| vector< char * > | data_list |
Static Private Attributes | |
| static const char * | IMAGE_WIDTH_TAG = "Dimensions #0" |
| static const char * | IMAGE_HEIGHT_TAG = "Dimensions #1" |
| static const char * | IMAGE_DATATYPE_TAG = "DataType" |
| static const char * | IMAGE_THUMB_INDEX_TAG = "ImageIndex" |
| void TagTable::add | ( | const string & | name, |
| const string & | value | ||
| ) |
Definition at line 61 of file dm3io.cpp.
References datatype_list, IMAGE_DATATYPE_TAG, IMAGE_HEIGHT_TAG, IMAGE_THUMB_INDEX_TAG, IMAGE_WIDTH_TAG, set_thumb_index(), tags, x_list, and y_list.
Referenced by EMAN::Gatan::TagData::read_any(), EMAN::Gatan::TagData::read_array_data(), and EMAN::Gatan::TagData::read_native().
| void TagTable::add_data | ( | char * | data | ) |
Definition at line 82 of file dm3io.cpp.
References data_list, and NullPointerException.
Referenced by EMAN::Gatan::TagData::read_array_data().
|
inline |
Definition at line 65 of file dm3io.h.
References is_big_endian, EMAN::ByteOrder::is_host_big_endian(), and EMAN::ByteOrder::swap_bytes().
Referenced by EMAN::Gatan::TagData::read_array_data(), EMAN::Gatan::TagData::read_native(), and EMAN::Gatan::TagData::read_string().
| char * TagTable::get_data | ( | ) | const |
| int TagTable::get_datatype | ( | ) | const |
Definition at line 132 of file dm3io.cpp.
References datatype_list, and img_index.
| double TagTable::get_double | ( | const string & | name | ) |
| float TagTable::get_float | ( | const string & | name | ) |
| int TagTable::get_int | ( | const string & | name | ) |
| string TagTable::get_string | ( | const string & | name | ) |
| int TagTable::get_xsize | ( | ) | const |
| int TagTable::get_ysize | ( | ) | const |
|
inline |
Definition at line 71 of file dm3io.h.
References is_big_endian.
|
private |
Definition at line 142 of file dm3io.cpp.
References img_index, and OutofRangeException.
Referenced by add().
|
private |
Definition at line 90 of file dm3io.h.
Referenced by add_data(), get_data(), and ~TagTable().
|
private |
Definition at line 89 of file dm3io.h.
Referenced by add(), and get_datatype().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
Definition at line 84 of file dm3io.h.
Referenced by get_data(), get_datatype(), get_xsize(), get_ysize(), and set_thumb_index().
|
private |
Definition at line 85 of file dm3io.h.
Referenced by become_host_endian(), and set_endian().
|
private |
Definition at line 86 of file dm3io.h.
Referenced by add(), dump(), get_double(), get_float(), get_int(), and get_string().
|
private |
Definition at line 87 of file dm3io.h.
Referenced by add(), and get_xsize().
|
private |
Definition at line 88 of file dm3io.h.
Referenced by add(), and get_ysize().