Public Types |
enum | EngineMode { modeRead,
modeWrite
} |
| These are the modes the Persistence::Engine can work in. More...
|
Public Methods |
| Engine (std::iostream &stream, EngineMode mode) throw ( PersistException ) |
| Constructs a Persistence::Engine with the specified stream in the given mode. More...
|
virtual | ~Engine () |
| This Flushes the buffers and closes the Persistence::Engine this must happen before the underlying stream is shut down. More...
|
void | Write (const BaseObject *object) throw ( Exception ) |
void | Write (int8 i) throw ( Exception ) |
void | Write (uint8 i) throw ( Exception ) |
void | Write (int16 i) throw ( Exception ) |
void | Write (uint16 i) throw ( Exception ) |
void | Write (int32 i) throw ( Exception ) |
void | Write (uint32 i) throw ( Exception ) |
void | Write (int64 i) throw ( Exception ) |
void | Write (uint64 i) throw ( Exception ) |
void | Write (float i) throw ( Exception ) |
void | Write (double i) throw ( Exception ) |
void | Write (const std::string &str) throw ( Exception ) |
void | WriteBinary (const uint8 *data, const uint32 size) throw ( Exception ) |
void | Read (BaseObject *&object) throw ( Exception ) |
void | Read (int8 &i) throw ( Exception ) |
void | Read (uint8 &i) throw ( Exception ) |
void | Read (int16 &i) throw ( Exception ) |
void | Read (uint16 &i) throw ( Exception ) |
void | Read (int32 &i) throw ( Exception ) |
void | Read (uint32 &i) throw ( Exception ) |
void | Read (int64 &i) throw ( Exception ) |
void | Read (uint64 &i) throw ( Exception ) |
void | Read (float &i) throw ( Exception ) |
void | Read (double &i) throw ( Exception ) |
void | Read (std::string &str) throw ( Exception ) |
void | ReadBinary (uint8 *data, uint32 size) throw ( Exception ) |
This class constructs on a standard C++ STL stream and then operates in the mode specified.