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

CB2::SerializedClass Class Reference

Basic class for classes with persistent data. More...

#include <Application.h>

Inheritance diagram for CB2::SerializedClass:

CB2::Class List of all members.

Public Member Functions

 SerializedClass (const char *instance)
virtual ~SerializedClass ()
virtual bool Write (Serializer *storage)=0
virtual bool Read (Serializer *storage)=0
virtual const char * GetSerialName ()=0

Public Attributes

int tag
 Tag for user-specific data.


Private Attributes

const char * inst

Detailed Description

Basic class for classes with persistent data.

Classes inherited from this class can have persistent data to be stored during the application session (i.e. multiple runs of the application on the server machine).

The inherited class must be declared with CB2_DECLARE_SERIALIZEDCLASS macro and contain the CB2_IMPLEMENT_SERIALIAZEDCLASS macro in the implementation part.

Also the virtual methods Write() and Read() must be implemented to store and retrieve the persistent data from the serializer.


Constructor & Destructor Documentation

CB2::SerializedClass::SerializedClass const char *  instance  ) 
 

virtual CB2::SerializedClass::~SerializedClass  )  [virtual]
 


Member Function Documentation

virtual const char* CB2::SerializedClass::GetSerialName  )  [pure virtual]
 

virtual bool CB2::SerializedClass::Read Serializer storage  )  [pure virtual]
 

virtual bool CB2::SerializedClass::Write Serializer storage  )  [pure virtual]
 


Member Data Documentation

const char* CB2::SerializedClass::inst [private]
 

int CB2::Class::tag [inherited]
 

Tag for user-specific data.


The documentation for this class was generated from the following file:
Generated on Thu Sep 16 23:26:49 2004 for ColorBox2 by doxygen 1.3.7