ccp4srs
Version 1.0.0
|
#include <memio_.h>
Public Types | |
enum | { Ok, CantOpenFile, EmptyFile, ReadError, WriteError, MemReadError, CompressionError, UncompressionError, SizeError } |
Public Member Functions | |
MemIO () | |
virtual | ~MemIO () |
void | setCompressionLevel (int compressionLevel) |
int | read (mmdb::cpstr fileName, mmdb::io::GZ_MODE gzMode=mmdb::io::GZM_NONE) |
int | read (mmdb::io::RFile f) |
int | write (mmdb::cpstr fileName, mmdb::io::GZ_MODE gzMode=mmdb::io::GZM_NONE) |
int | write (mmdb::io::RFile f) |
int | length () |
void | reset () |
void | free () |
void * | get_buffer (const int length) |
void | set_buffer_length (const int len) |
void | get_buffer (mmdb::pstr *buf, int *length) |
void | write_buffer (const void *src, const int length) |
bool | read_buffer (void *dest, const int length, bool *Ok=NULL) |
void | put_integer (int I) |
void | put_ishort (int I) |
void | put_ibyte (int I) |
void | put_byte (mmdb::byte B) |
void | put_short (short I) |
void | put_long (long I) |
void | put_word (mmdb::word W) |
void | put_real (mmdb::realtype R) |
void | put_float (mmdb::realtype R) |
void | put_shortreal (mmdb::shortreal R) |
void | put_line (mmdb::cpstr L) |
void | put_string (mmdb::cpstr L) |
void | put_bool (bool B) |
bool | get_integer (int &I, bool *Ok=NULL) |
bool | get_ishort (int &I, bool *Ok=NULL) |
bool | get_ibyte (int &I, bool *Ok=NULL) |
bool | get_byte (mmdb::byte &B, bool *Ok=NULL) |
bool | get_short (short &I, bool *Ok=NULL) |
bool | get_long (long &I, bool *Ok=NULL) |
bool | get_word (mmdb::word &W, bool *Ok=NULL) |
bool | get_real (mmdb::realtype &R, bool *Ok=NULL) |
bool | get_float (mmdb::realtype &R, bool *Ok=NULL) |
bool | get_shortreal (mmdb::shortreal &R, bool *Ok=NULL) |
bool | get_line (mmdb::pstr L, bool *Ok=NULL) |
bool | get_string (mmdb::pstr &L, bool *Ok=NULL) |
bool | get_bool (bool &B, bool *Ok=NULL) |
anonymous enum |
ccp4srs::MemIO::MemIO | ( | ) |
|
virtual |
void ccp4srs::MemIO::free | ( | ) |
bool ccp4srs::MemIO::get_bool | ( | bool & | B, |
bool * | Ok = NULL |
||
) |
void * ccp4srs::MemIO::get_buffer | ( | const int | length | ) |
void ccp4srs::MemIO::get_buffer | ( | mmdb::pstr * | buf, |
int * | length | ||
) |
bool ccp4srs::MemIO::get_byte | ( | mmdb::byte & | B, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_float | ( | mmdb::realtype & | R, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_ibyte | ( | int & | I, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_integer | ( | int & | I, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_ishort | ( | int & | I, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_line | ( | mmdb::pstr | L, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_long | ( | long & | I, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_real | ( | mmdb::realtype & | R, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_short | ( | short & | I, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_shortreal | ( | mmdb::shortreal & | R, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_string | ( | mmdb::pstr & | L, |
bool * | Ok = NULL |
||
) |
bool ccp4srs::MemIO::get_word | ( | mmdb::word & | W, |
bool * | Ok = NULL |
||
) |
|
inline |
void ccp4srs::MemIO::put_bool | ( | bool | B | ) |
void ccp4srs::MemIO::put_byte | ( | mmdb::byte | B | ) |
void ccp4srs::MemIO::put_float | ( | mmdb::realtype | R | ) |
void ccp4srs::MemIO::put_ibyte | ( | int | I | ) |
void ccp4srs::MemIO::put_integer | ( | int | I | ) |
void ccp4srs::MemIO::put_ishort | ( | int | I | ) |
void ccp4srs::MemIO::put_line | ( | mmdb::cpstr | L | ) |
void ccp4srs::MemIO::put_long | ( | long | I | ) |
void ccp4srs::MemIO::put_real | ( | mmdb::realtype | R | ) |
void ccp4srs::MemIO::put_short | ( | short | I | ) |
void ccp4srs::MemIO::put_shortreal | ( | mmdb::shortreal | R | ) |
void ccp4srs::MemIO::put_string | ( | mmdb::cpstr | L | ) |
void ccp4srs::MemIO::put_word | ( | mmdb::word | W | ) |
int ccp4srs::MemIO::read | ( | mmdb::cpstr | fileName, |
mmdb::io::GZ_MODE | gzMode = mmdb::io::GZM_NONE |
||
) |
int ccp4srs::MemIO::read | ( | mmdb::io::RFile | f | ) |
bool ccp4srs::MemIO::read_buffer | ( | void * | dest, |
const int | length, | ||
bool * | Ok = NULL |
||
) |
void ccp4srs::MemIO::reset | ( | ) |
|
inline |
void ccp4srs::MemIO::setCompressionLevel | ( | int | compressionLevel | ) |
int ccp4srs::MemIO::write | ( | mmdb::cpstr | fileName, |
mmdb::io::GZ_MODE | gzMode = mmdb::io::GZM_NONE |
||
) |
int ccp4srs::MemIO::write | ( | mmdb::io::RFile | f | ) |
void ccp4srs::MemIO::write_buffer | ( | const void * | src, |
const int | length | ||
) |