class Engine

stream serialization of persistent classes. More...

Full nameost::Engine
Definition#include <persist.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


Detailed Description

Engine

This class constructs on a standard C++ STL stream and then operates in the mode specified.

Exception (class)

Exception

If problems happen which are fatal - expect one of these thrown at you

enum EngineMode { modeRead, modeWrite }

EngineMode

These are the modes the Persistence::Engine can work in

 Engine (std::iostream& stream, EngineMode mode)
throw(PersistException)

Engine

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.

 ~Engine ()

~Engine

[virtual]

This Flushes the buffers and closes the Persistence::Engine this must happen before the underlying stream is shut down

void  Write (const BaseObject *object)
throw(Exception)

Write

void  Write (int8 i)
throw(Exception)

Write

void  Write (uint8 i)
throw(Exception)

Write

void  Write (int16 i)
throw(Exception)

Write

void  Write (uint16 i)
throw(Exception)

Write

void  Write (int32 i)
throw(Exception)

Write

void  Write (uint32 i)
throw(Exception)

Write

void  Write (int64 i)
throw(Exception)

Write

void  Write (uint64 i)
throw(Exception)

Write

void  Write (float i)
throw(Exception)

Write

void  Write (double i)
throw(Exception)

Write

void  Write (const std::string& str)
throw(Exception)

Write

void  WriteBinary (const uint8* data, const uint32 size)
throw(Exception)

WriteBinary

void  Read (BaseObject *&object)
throw(Exception)

Read

void  Read (int8& i)
throw(Exception)

Read

void  Read (uint8& i)
throw(Exception)

Read

void  Read (int16& i)
throw(Exception)

Read

void  Read (uint16& i)
throw(Exception)

Read

void  Read (int32& i)
throw(Exception)

Read

void  Read (uint32& i)
throw(Exception)

Read

void  Read (int64& i)
throw(Exception)

Read

void  Read (uint64& i)
throw(Exception)

Read

void  Read (float& i)
throw(Exception)

Read

void  Read (double& i)
throw(Exception)

Read

void  Read (std::string& str)
throw(Exception)

Read

void  ReadBinary (uint8* data, uint32 size)
throw(Exception)

ReadBinary