#include <mmdb_io_file.h>
Public Member Functions | |
| File (word BufSize=4096) | |
| virtual | ~File () |
| void | assign (cpstr FileName, bool Text=false, bool UniB=false, GZ_MODE gzMode=GZM_NONE) |
| void | assign (word poolSize, word sizeInc, pstr filePool) |
| void | GetFilePool (pstr &filePool, word &fileSize) |
| cpstr | FileName () |
| bool | reset (bool ReadOnly=false, int retry=0) |
| bool | erase () |
| bool | exists () |
| bool | parse (cpstr FileName) |
| bool | rename (cpstr NewFileName) |
| bool | rewrite () |
| bool | append () |
| bool | isOpen () |
| long | Position () |
| long | FileLength () |
| bool | seek (long Position) |
| bool | FileEnd () |
| bool | Success () |
| void | SetSuccess () |
| void | shut () |
| word | ReadFile (void *Buffer, word Count) |
| word | CreateRead (pstr &Line) |
| word | ReadTerLine (pstr Line, bool longLine=false) |
| bool | WriteFile (const void *Buffer, word Count) |
| bool | CreateWrite (cpstr Line) |
| bool | WriteTerLine (cpstr Line, bool longLine=false) |
| bool | WriteReal (realtype *V) |
| bool | WriteFloat (realtype *V) |
| bool | WriteInt (int *I) |
| bool | WriteShort (short *S) |
| bool | WriteLong (long *L) |
| bool | WriteBool (bool *B) |
| bool | WriteByte (byte *B) |
| bool | WriteWord (word *W) |
| bool | ReadReal (realtype *V) |
| bool | ReadFloat (realtype *V) |
| bool | ReadInt (int *I) |
| bool | ReadShort (short *S) |
| bool | ReadLong (long *L) |
| bool | ReadBool (bool *B) |
| bool | ReadByte (byte *B) |
| bool | ReadWord (word *B) |
| bool | AddReal (realtype *V) |
| bool | AddFloat (realtype *V) |
| bool | AddInt (int *I) |
| bool | AddShort (short *S) |
| bool | AddLong (long *L) |
| bool | AddByte (byte *B) |
| bool | AddWord (word *B) |
| bool | WriteVector (rvector V, int len, int Shift) |
| bool | WriteVector (ivector iV, int len, int Shift) |
| bool | WriteVector (lvector lV, int len, int Shift) |
| bool | WriteVector (bvector B, int len, int Shift) |
| bool | ReadVector (rvector V, int maxlen, int Shift) |
| bool | ReadVector (ivector iV, int maxlen, int Shift) |
| bool | ReadVector (lvector lV, int maxlen, int Shift) |
| bool | ReadVector (bvector B, int maxlen, int Shift) |
| bool | CreateReadVector (rvector &V, int &len, int Shift) |
| bool | CreateReadVector (ivector &iV, int &len, int Shift) |
| bool | CreateReadVector (lvector &lV, int &len, int Shift) |
| bool | CreateReadVector (bvector &B, int &len, int Shift) |
| bool | CreateReadVector (rvector &V, int Shift) |
| bool | CreateReadVector (ivector &iV, int Shift) |
| bool | CreateReadVector (lvector &lV, int Shift) |
| bool | CreateReadVector (bvector &B, int Shift) |
| bool | WriteMatrix (rmatrix &A, int N, int M, int ShiftN, int ShiftM) |
| bool | CreateReadMatrix (rmatrix &A, int ShiftN, int ShiftM) |
| bool | CreateReadMatrix (rmatrix &A, int &N, int &M, int ShiftN, int ShiftM) |
| bool | Write (cpstr Line) |
| ---- text I/O | |
| bool | Write (realtype V, int length=10) |
| w/o LF | |
| bool | Write (int iV, int length=5) |
| w/o LF | |
| bool | WriteLine (cpstr Line) |
| writes and adds LF | |
| bool | LF () |
| just adds LF | |
| word | ReadLine (pstr Line, word MaxLen=255) |
| word | ReadNonBlankLine (pstr S, word MaxLen=255) |
| bool | WriteDataLine (realtype X, realtype Y, int length=10) |
| complex data text I/O | |
| bool | WriteParameter (cpstr S, realtype X, int ParColumn=40, int length=10) |
| bool | WriteParameters (cpstr S, int n_X, rvector X, int ParColumn=40, int length=10) |
| bool | ReadParameter (pstr S, realtype &X, int ParColumn=40) |
| bool | ReadParameter (pstr S, int &X, int ParColumn=40) |
| bool | ReadParameters (pstr S, int &n_X, rvector X, int MaxLen=255, int ParColumn=40) |
| bool | WriteColumns (rvector X, rvector Y, rvector Z, int len, int Shift, int MLength) |
| bool | WriteColumns (rvector X, rvector Y, int len, int Shift, int MLength) |
| int | ReadColumns (int maxlen, rvector X, rvector Y, rvector Z, int xCol, int yCol, int zCol, int Shift) |
| int | ReadColumns (int maxlen, rvector X, rvector Y, int xCol, int yCol, int Shift) |
| int | CreateReadColumns (rvector &X, rvector &Y, rvector &Z, int xCol, int yCol, int zCol, int Shift) |
| int | CreateReadColumns (rvector &X, rvector &Y, int xCol, int yCol, int Shift) |
| realtype | GetNumber (cpstr S) |
| FILE * | GetHandle () |
Protected Member Functions | |
| void | FreeBuffer () |
| void | _ReadColumns (int &DLen, pstr S, int SLen, rvector X, rvector Y, rvector Z, int xCol, int yCol, int zCol, int Shift) |
Protected Attributes | |
| word | Buf_Size |
| bool | TextMode |
| bool | UniBin |
| GZ_MODE | gzipMode |
| pstr | IOBuf |
| word | BufCnt |
| word | BufLen |
| word | BufInc |
| FILE * | hFile |
| bool | EofFile |
| pstr | FName |
| long | FLength |
| bool | IOSuccess |
| int | ErrCode |
| mmdb::io::File::File | ( | word | BufSize = 4096 ) |
| mmdb::io::File::~File | ( | ) | [virtual] |
| void mmdb::io::File::_ReadColumns | ( | int & | DLen, |
| pstr | S, | ||
| int | SLen, | ||
| rvector | X, | ||
| rvector | Y, | ||
| rvector | Z, | ||
| int | xCol, | ||
| int | yCol, | ||
| int | zCol, | ||
| int | Shift | ||
| ) | [protected] |
| bool mmdb::io::File::AddByte | ( | byte * | B ) |
| bool mmdb::io::File::AddFloat | ( | realtype * | V ) |
| bool mmdb::io::File::AddInt | ( | int * | I ) |
| bool mmdb::io::File::AddLong | ( | long * | L ) |
| bool mmdb::io::File::AddReal | ( | realtype * | V ) |
| bool mmdb::io::File::AddShort | ( | short * | S ) |
| bool mmdb::io::File::AddWord | ( | word * | B ) |
| bool mmdb::io::File::append | ( | ) |
| void mmdb::io::File::assign | ( | cpstr | FileName, |
| bool | Text = false, |
||
| bool | UniB = false, |
||
| GZ_MODE | gzMode = GZM_NONE |
||
| ) |
| int mmdb::io::File::CreateReadColumns | ( | rvector & | X, |
| rvector & | Y, | ||
| rvector & | Z, | ||
| int | xCol, | ||
| int | yCol, | ||
| int | zCol, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadMatrix | ( | rmatrix & | A, |
| int | ShiftN, | ||
| int | ShiftM | ||
| ) |
| bool mmdb::io::File::CreateReadMatrix | ( | rmatrix & | A, |
| int & | N, | ||
| int & | M, | ||
| int | ShiftN, | ||
| int | ShiftM | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | bvector & | B, |
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | rvector & | V, |
| int & | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | ivector & | iV, |
| int & | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | lvector & | lV, |
| int & | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | bvector & | B, |
| int & | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | rvector & | V, |
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | ivector & | iV, |
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateReadVector | ( | lvector & | lV, |
| int | Shift | ||
| ) |
| bool mmdb::io::File::CreateWrite | ( | cpstr | Line ) |
| bool mmdb::io::File::erase | ( | ) |
| bool mmdb::io::File::exists | ( | ) |
| bool mmdb::io::File::FileEnd | ( | ) |
| long mmdb::io::File::FileLength | ( | ) | [inline] |
| cpstr mmdb::io::File::FileName | ( | ) | [inline] |
| void mmdb::io::File::FreeBuffer | ( | ) | [protected] |
| FILE* mmdb::io::File::GetHandle | ( | ) | [inline] |
| bool mmdb::io::File::isOpen | ( | ) |
| bool mmdb::io::File::LF | ( | ) |
just adds LF
| bool mmdb::io::File::parse | ( | cpstr | FileName ) |
| long mmdb::io::File::Position | ( | ) |
| bool mmdb::io::File::ReadBool | ( | bool * | B ) |
| bool mmdb::io::File::ReadByte | ( | byte * | B ) |
| int mmdb::io::File::ReadColumns | ( | int | maxlen, |
| rvector | X, | ||
| rvector | Y, | ||
| rvector | Z, | ||
| int | xCol, | ||
| int | yCol, | ||
| int | zCol, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::ReadFloat | ( | realtype * | V ) |
| bool mmdb::io::File::ReadInt | ( | int * | I ) |
| bool mmdb::io::File::ReadLong | ( | long * | L ) |
| bool mmdb::io::File::ReadParameter | ( | pstr | S, |
| int & | X, | ||
| int | ParColumn = 40 |
||
| ) |
| bool mmdb::io::File::ReadParameters | ( | pstr | S, |
| int & | n_X, | ||
| rvector | X, | ||
| int | MaxLen = 255, |
||
| int | ParColumn = 40 |
||
| ) |
| bool mmdb::io::File::ReadReal | ( | realtype * | V ) |
| bool mmdb::io::File::ReadShort | ( | short * | S ) |
| bool mmdb::io::File::ReadVector | ( | rvector | V, |
| int | maxlen, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::ReadVector | ( | ivector | iV, |
| int | maxlen, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::ReadVector | ( | lvector | lV, |
| int | maxlen, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::ReadVector | ( | bvector | B, |
| int | maxlen, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::ReadWord | ( | word * | B ) |
| bool mmdb::io::File::rename | ( | cpstr | NewFileName ) |
| bool mmdb::io::File::reset | ( | bool | ReadOnly = false, |
| int | retry = 0 |
||
| ) |
| bool mmdb::io::File::rewrite | ( | ) |
| bool mmdb::io::File::seek | ( | long | Position ) |
| void mmdb::io::File::SetSuccess | ( | ) | [inline] |
| void mmdb::io::File::shut | ( | ) |
| bool mmdb::io::File::Success | ( | ) | [inline] |
| bool mmdb::io::File::Write | ( | int | iV, |
| int | length = 5 |
||
| ) |
w/o LF
| bool mmdb::io::File::Write | ( | cpstr | Line ) |
---- text I/O
writes without LF
| bool mmdb::io::File::Write | ( | realtype | V, |
| int | length = 10 |
||
| ) |
w/o LF
| bool mmdb::io::File::WriteBool | ( | bool * | B ) |
| bool mmdb::io::File::WriteByte | ( | byte * | B ) |
| bool mmdb::io::File::WriteColumns | ( | rvector | X, |
| rvector | Y, | ||
| rvector | Z, | ||
| int | len, | ||
| int | Shift, | ||
| int | MLength | ||
| ) |
complex data text I/O
| bool mmdb::io::File::WriteFile | ( | const void * | Buffer, |
| word | Count | ||
| ) |
| bool mmdb::io::File::WriteFloat | ( | realtype * | V ) |
| bool mmdb::io::File::WriteInt | ( | int * | I ) |
| bool mmdb::io::File::WriteLine | ( | cpstr | Line ) |
writes and adds LF
| bool mmdb::io::File::WriteLong | ( | long * | L ) |
| bool mmdb::io::File::WriteMatrix | ( | rmatrix & | A, |
| int | N, | ||
| int | M, | ||
| int | ShiftN, | ||
| int | ShiftM | ||
| ) |
| bool mmdb::io::File::WriteParameters | ( | cpstr | S, |
| int | n_X, | ||
| rvector | X, | ||
| int | ParColumn = 40, |
||
| int | length = 10 |
||
| ) |
| bool mmdb::io::File::WriteReal | ( | realtype * | V ) |
| bool mmdb::io::File::WriteShort | ( | short * | S ) |
| bool mmdb::io::File::WriteTerLine | ( | cpstr | Line, |
| bool | longLine = false |
||
| ) |
| bool mmdb::io::File::WriteVector | ( | bvector | B, |
| int | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::WriteVector | ( | ivector | iV, |
| int | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::WriteVector | ( | lvector | lV, |
| int | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::WriteVector | ( | rvector | V, |
| int | len, | ||
| int | Shift | ||
| ) |
| bool mmdb::io::File::WriteWord | ( | word * | W ) |
word mmdb::io::File::Buf_Size [protected] |
word mmdb::io::File::BufCnt [protected] |
word mmdb::io::File::BufInc [protected] |
word mmdb::io::File::BufLen [protected] |
bool mmdb::io::File::EofFile [protected] |
int mmdb::io::File::ErrCode [protected] |
long mmdb::io::File::FLength [protected] |
pstr mmdb::io::File::FName [protected] |
GZ_MODE mmdb::io::File::gzipMode [protected] |
FILE* mmdb::io::File::hFile [protected] |
pstr mmdb::io::File::IOBuf [protected] |
bool mmdb::io::File::IOSuccess [protected] |
bool mmdb::io::File::TextMode [protected] |
bool mmdb::io::File::UniBin [protected] |
1.7.2