#include <io_template.h>
Inheritance diagram for EMAN::XYZIO:


Public Member Functions | |
| XYZIO (const string &filename, IOMode rw_mode=READ_ONLY) | |
| ~XYZIO () | |
| int | get_nimg () |
| Return the number of images in this image file. | |
Static Public Member Functions | |
| static bool | is_valid (const void *first_block) |
Public Attributes | |
| DEFINE_IMAGEIO_FUNC | |
Private Attributes | |
| string | filename |
| IOMode | rw_mode |
| FILE * | xyz_file |
| bool | is_big_endian |
| bool | initialized |
It defines all required API that you may need to implement.
Definition at line 43 of file io_template.h.
| XYZIO::XYZIO | ( | const string & | filename, | |
| IOMode | rw_mode = READ_ONLY | |||
| ) |
Definition at line 37 of file io_template.cpp.
References is_big_endian, and EMAN::ByteOrder::is_host_big_endian().
00038 : filename(file), rw_mode(rw), xyz_file(0), initialized(false) 00039 { 00040 is_big_endian = ByteOrder::is_host_big_endian(); 00041 }
| XYZIO::~XYZIO | ( | ) |
| int XYZIO::get_nimg | ( | ) | [virtual] |
Return the number of images in this image file.
Reimplemented from EMAN::ImageIO.
Definition at line 145 of file io_template.cpp.
References EMAN::ImageIO::init().
00146 { 00147 init(); 00148 00149 return 1; 00150 }
| bool XYZIO::is_valid | ( | const void * | first_block | ) | [static] |
Definition at line 49 of file io_template.h.
string EMAN::XYZIO::filename [private] |
Definition at line 54 of file io_template.h.
bool EMAN::XYZIO::initialized [private] |
Definition at line 59 of file io_template.h.
bool EMAN::XYZIO::is_big_endian [private] |
IOMode EMAN::XYZIO::rw_mode [private] |
Definition at line 55 of file io_template.h.
FILE* EMAN::XYZIO::xyz_file [private] |
1.4.7