Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ost::BaseObject Class Reference

BaseObject Base class for classes that will be persistent. More...

#include <persist.h>

List of all members.

Public Methods

 BaseObject ()
 This constructor is used in serialisation processes. More...

virtual ~BaseObject ()
 Default destructor. More...

virtual const char * GetPersistenceID () const
 This returns the ID of the persistent object (Its type). More...

virtual bool Write (Engine &archive) const
 This method is used to write to the Persistence::Engine It is not equivalent to the << operator as it writes only the data and not the object type etc. More...

virtual bool Read (Engine &archive)
 This method is used to read from a Persistence::Engine It is not equivalent to the >> operator as it does no typesafety or anything. More...


Detailed Description

BaseObject Base class for classes that will be persistent.

This object is the base for all Persistent data which is not natively serialised by the Persistence::Engine

It registers itself with the Persistence::TypeManager using a global constructor function. A matching deregister call is made in a global destructor, to allow DLL's to use the Persistence::Engine in a main executable.

Author:
Daniel Silverstone


Constructor & Destructor Documentation

ost::BaseObject::BaseObject  
 

This constructor is used in serialisation processes.

It is called in CreateNewInstance in order to create an instance of the class to have Read() called on it.

virtual ost::BaseObject::~BaseObject   [virtual]
 

Default destructor.


Member Function Documentation

virtual const char* ost::BaseObject::GetPersistenceID   const [virtual]
 

This returns the ID of the persistent object (Its type).

virtual bool ost::BaseObject::Read Engine &   archive [virtual]
 

This method is used to read from a Persistence::Engine It is not equivalent to the >> operator as it does no typesafety or anything.

virtual bool ost::BaseObject::Write Engine &   archive const [virtual]
 

This method is used to write to the Persistence::Engine It is not equivalent to the << operator as it writes only the data and not the object type etc.


The documentation for this class was generated from the following file:
Generated at Wed Dec 5 07:05:26 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001