#include <Application.h>
Inheritance diagram for CB2::SerializedClass:
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 |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
Tag for user-specific data.
|