|
LCIO
02.17
|
#include <lXDR.hh>
Inheritance diagram for UTIL::lXDR:Public Member Functions | |
| lXDR (const char *filename=0, bool open_for_write=false) | |
| virtual | ~lXDR () |
| void | setFileName (const char *filename, bool open_for_write=false) |
| const char * | getFileName (void) const |
| long | getError (void) const |
| long | readLong (void) |
| double | readFloat (void) |
| double | readDouble (void) |
| const char * | readString (long &length) |
| long * | readLongArray (long &length) |
| double * | readFloatArray (long &length) |
| double * | readDoubleArray (long &length) |
| long | writeLong (long data) |
| long | writeDouble (double data) |
| long | writeString (const char *data) |
| long | writeString (const char *data, long length) |
| long | writeLongArray (const long *data, long length) |
| long | writeDoubleArray (const double *data, long length) |
| void | setError (long error) |
| long | filePosition (long pos=-1) |
Static Public Member Functions | |
| static int | getMajor (void) |
| static int | getMinor (void) |
| static const char * | getText (void) |
Private Types | |
| enum | { MAJOR = 1, MINOR = 0, DAY = 23, MONTH = 10, YEAR = 2003 } |
Private Member Functions | |
| lXDR (const lXDR &) | |
| lXDR & | operator= (const lXDR &) |
| double | ntohd (double d) const |
| double | htond (double d) const |
| long | checkRead (long *) |
| long | checkRead (float *) |
| long | checkRead (double *) |
| long | checkWrite (long *) |
| long | checkWrite (double *) |
Private Attributes | |
| char * | _fileName |
| FILE * | _fp |
| long | _error {0} |
| bool | _openForWrite {false} |
| bool | _hasNetworkOrder {false} |
| UTIL::lXDR::lXDR | ( | const char * | filename = 0, |
| bool | open_for_write = false |
||
| ) |
Definition at line 41 of file lXDR.cc.
References _hasNetworkOrder, and setFileName().
|
private |
|
private |
Definition at line 110 of file lXDR.cc.
References _error, _fp, _openForWrite, LXDR_NOFILE, LXDR_READERROR, LXDR_READONLY, and LXDR_SUCCESS.
Referenced by readDouble(), readDoubleArray(), readFloat(), readFloatArray(), readLong(), readLongArray(), and readString().
|
private |
Definition at line 138 of file lXDR.cc.
References _error, _fp, _openForWrite, LXDR_NOFILE, LXDR_READERROR, LXDR_READONLY, and LXDR_SUCCESS.
|
private |
Definition at line 127 of file lXDR.cc.
References _error, _fp, _openForWrite, LXDR_NOFILE, LXDR_READERROR, LXDR_READONLY, LXDR_SUCCESS, and ntohd().
|
private |
Definition at line 261 of file lXDR.cc.
References _error, _fp, _openForWrite, LXDR_NOFILE, LXDR_SUCCESS, LXDR_WRITEERROR, and LXDR_WRITEONLY.
Referenced by writeDouble(), writeDoubleArray(), writeLong(), writeLongArray(), and writeString().
|
private |
Definition at line 273 of file lXDR.cc.
References _error, _fp, _openForWrite, htond(), LXDR_NOFILE, LXDR_SUCCESS, LXDR_WRITEERROR, and LXDR_WRITEONLY.
| long UTIL::lXDR::filePosition | ( | long | pos = -1 | ) |
Definition at line 338 of file lXDR.cc.
References _error, _fp, LXDR_NOFILE, and LXDR_SEEKERROR.
Referenced by UTIL::lStdHep::readEvent().
|
inline |
Definition at line 72 of file lXDR.hh.
References _error.
Referenced by UTIL::lStdHep::getEvent(), UTIL::lStdHep::more(), UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), UTIL::lStdHep::readEvent(), and UTIL::lStdHep::readFileHeader().
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlineprivate |
Definition at line 124 of file lXDR.hh.
References ntohd().
Referenced by checkWrite(), and writeDoubleArray().
|
private |
Definition at line 87 of file lXDR.cc.
References _hasNetworkOrder.
Referenced by checkRead(), htond(), and readDoubleArray().
| double UTIL::lXDR::readDouble | ( | void | ) |
Definition at line 159 of file lXDR.cc.
References checkRead().
Referenced by UTIL::lStdHep::Event::read().
| double * UTIL::lXDR::readDoubleArray | ( | long & | length | ) |
Definition at line 220 of file lXDR.cc.
References _error, _fp, _hasNetworkOrder, checkRead(), LXDR_READERROR, LXDR_SUCCESS, and ntohd().
Referenced by UTIL::lStdHep::Event::read().
| double UTIL::lXDR::readFloat | ( | void | ) |
Definition at line 166 of file lXDR.cc.
References checkRead().
Referenced by UTIL::lStdHep::Event::read().
| double * UTIL::lXDR::readFloatArray | ( | long & | length | ) |
Definition at line 234 of file lXDR.cc.
References _error, _fp, _hasNetworkOrder, checkRead(), LXDR_READERROR, and LXDR_SUCCESS.
| long UTIL::lXDR::readLong | ( | void | ) |
Definition at line 152 of file lXDR.cc.
References checkRead().
Referenced by UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), and UTIL::lStdHep::readFileHeader().
| long * UTIL::lXDR::readLongArray | ( | long & | length | ) |
Definition at line 188 of file lXDR.cc.
References _error, _fp, _hasNetworkOrder, checkRead(), LXDR_READERROR, and LXDR_SUCCESS.
Referenced by UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), and UTIL::lStdHep::readFileHeader().
| const char * UTIL::lXDR::readString | ( | long & | length | ) |
Definition at line 173 of file lXDR.cc.
References _error, _fp, checkRead(), LXDR_READERROR, and LXDR_SUCCESS.
Referenced by UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), and UTIL::lStdHep::readFileHeader().
|
inline |
Definition at line 110 of file lXDR.hh.
References _error.
Referenced by UTIL::lStdHep::lStdHep(), UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), UTIL::lStdHep::readEvent(), and UTIL::lStdHep::readFileHeader().
| void UTIL::lXDR::setFileName | ( | const char * | filename, |
| bool | open_for_write = false |
||
| ) |
Definition at line 49 of file lXDR.cc.
References _error, _fileName, _fp, _openForWrite, LXDR_OPENFAILURE, and LXDR_SUCCESS.
Referenced by lXDR().
| long UTIL::lXDR::writeDouble | ( | double | data | ) |
Definition at line 289 of file lXDR.cc.
References checkWrite().
| long UTIL::lXDR::writeDoubleArray | ( | const double * | data, |
| long | length | ||
| ) |
Definition at line 323 of file lXDR.cc.
References _error, _fp, _hasNetworkOrder, checkWrite(), htond(), LXDR_SUCCESS, and LXDR_WRITEERROR.
| long UTIL::lXDR::writeLong | ( | long | data | ) |
Definition at line 284 of file lXDR.cc.
References checkWrite().
| long UTIL::lXDR::writeLongArray | ( | const long * | data, |
| long | length | ||
| ) |
Definition at line 308 of file lXDR.cc.
References _error, _fp, _hasNetworkOrder, checkWrite(), LXDR_SUCCESS, and LXDR_WRITEERROR.
| long UTIL::lXDR::writeString | ( | const char * | data, |
| long | length | ||
| ) |
Definition at line 299 of file lXDR.cc.
References _error, _fp, checkWrite(), LXDR_SUCCESS, and LXDR_WRITEERROR.
|
private |
Definition at line 119 of file lXDR.hh.
Referenced by checkRead(), checkWrite(), filePosition(), getError(), readDoubleArray(), readFloatArray(), readLongArray(), readString(), setError(), setFileName(), writeDoubleArray(), writeLongArray(), and writeString().
|
private |
Definition at line 117 of file lXDR.hh.
Referenced by getFileName(), setFileName(), and ~lXDR().
|
private |
Definition at line 118 of file lXDR.hh.
Referenced by checkRead(), checkWrite(), filePosition(), readDoubleArray(), readFloatArray(), readLongArray(), readString(), setFileName(), writeDoubleArray(), writeLongArray(), writeString(), and ~lXDR().
|
private |
Definition at line 122 of file lXDR.hh.
Referenced by lXDR(), ntohd(), readDoubleArray(), readFloatArray(), readLongArray(), writeDoubleArray(), and writeLongArray().
|
private |
Definition at line 120 of file lXDR.hh.
Referenced by checkRead(), checkWrite(), and setFileName().
1.8.5