class Engine
|
stream serialization of persistent classes.
More... |
|
|
Public Members
- class Exception
- enum EngineMode {modeRead, modeWrite }
- Engine (iostream& stream, EngineMode mode)
- ~Engine ()
- void Write (const BaseObject *object)
- void Write (int8 i)
- void Write (uint8 i)
- void Write (int16 i)
- void Write (uint16 i)
- void Write (int32 i)
- void Write (uint32 i)
- void Write (int64 i)
- void Write (uint64 i)
- void Write (float i)
- void Write (double i)
- void Write (const string& str)
- void WriteBinary (const uint8* data, const uint32 size)
- void Read (BaseObject *&object)
- void Read (int8& i)
- void Read (uint8& i)
- void Read (int16& i)
- void Read (uint16& i)
- void Read (int32& i)
- void Read (uint32& i)
- void Read (int64& i)
- void Read (uint64& i)
- void Read (float& i)
- void Read (double& i)
- void Read (string& str)
- void ReadBinary (uint8* data, uint32 size)
Detailed Description
Engine
This class constructs on a standard C++ STL stream and then
operates in the mode specified.
If problems happen which are fatal - expect one of these thrown at you
enum EngineMode {modeRead, modeWrite }
|
These are the modes the Persistence::Engine can work in
Engine (iostream& stream, EngineMode mode)
|
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
- Author: Daniel Silverstone
- Generated: dyfet@home.sys on Wed Mar 15 14:08:35 200.