#include <persist.h>
Public Types | |
enum | EngineMode { modeRead, modeWrite } |
These are the modes the Persistence::Engine can work in. More... | |
Public Methods | |
Engine (iostream& stream, EngineMode mode) THROWS (PersistException) | |
Constructs a Persistence::Engine with the specified stream in the given mode. More... | |
~Engine () | |
This Flushes the buffers and closes the Persistence::Engine this must happen before the underlying stream is shut down. | |
void | Write (const BaseObject *object) THROWS (Exception) |
void | Write (int8 i) THROWS (Exception) |
void | Write (uint8 i) THROWS (Exception) |
void | Write (int16 i) THROWS (Exception) |
void | Write (uint16 i) THROWS (Exception) |
void | Write (int32 i) THROWS (Exception) |
void | Write (uint32 i) THROWS (Exception) |
void | Write (int64 i) THROWS (Exception) |
void | Write (uint64 i) THROWS (Exception) |
void | Write (float i) THROWS (Exception) |
void | Write (double i) THROWS (Exception) |
void | Write (const string& str) THROWS (Exception) |
void | WriteBinary (const uint8* data, const uint32 size) THROWS (Exception) |
void | Read (BaseObject *&object) THROWS (Exception) |
void | Read (int8& i) THROWS (Exception) |
void | Read (uint8& i) THROWS (Exception) |
void | Read (int16& i) THROWS (Exception) |
void | Read (uint16& i) THROWS (Exception) |
void | Read (int32& i) THROWS (Exception) |
void | Read (uint32& i) THROWS (Exception) |
void | Read (int64& i) THROWS (Exception) |
void | Read (uint64& i) THROWS (Exception) |
void | Read (float& i) THROWS (Exception) |
void | Read (double& i) THROWS (Exception) |
void | Read (string& str) THROWS (Exception) |
void | ReadBinary (uint8* data, uint32 size) THROWS (Exception) |
This class constructs on a standard C++ STL stream and then operates in the mode specified.
|
These are the modes the Persistence::Engine can work in.
|
|
Constructs a Persistence::Engine with the specified stream in the given mode. The stream must be initialised properly prior to this call or problems will ensue. |
|
This Flushes the buffers and closes the Persistence::Engine this must happen before the underlying stream is shut down.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|