#include <cc++/config.h>#include <cc++/persist.h>#include <zlib.h>#include <iostream>#include <string>#include <vector>#include <map>Go to the source code of this file.
Namespaces | |
| namespace | ost |
Defines | |
| #define | DECLARE_PERSISTENCE(ClassType) |
| #define | IMPLEMENT_PERSISTENCE(ClassType, FullyQualifiedName) |
| #define | CCXX_ENGINEWRITE_REF(valref) WriteBinary((const uint8*)&valref,sizeof(valref)) |
| #define | CCXX_ENGINEREAD_REF(valref) ReadBinary((uint8*)&valref,sizeof(valref)) |
|
|
|
|
|
|
|
|
Value: public: \
friend Engine& operator>>(Engine& ar, ClassType *&ob); \
friend Engine& operator<<(Engine& ar, ClassType const *&ob); \
friend BaseObject *CreateNew##ClassType(); \
virtual const char* GetPersistenceID() const; \
static TypeManager::Registration RegistrationFor##ClassType; |
|
|
Value: BaseObject *CreateNew##ClassType() { return new ClassType; } \
const char* ClassType::GetPersistenceID()const {return FullyQualifiedName;} \
Engine& operator>>(Engine& ar, ClassType *&ob) \
{ ar >> (BaseObject *&) ob; return ar; } \
Engine& operator<<(Engine& ar, ClassType const *ob) \
{ ar << (BaseObject const *)ob; return ar; } \
TypeManager::Registration \
ClassType::RegistrationFor##ClassType(FullyQualifiedName, \
CreateNew##ClassType); |
1.2.10 written by Dimitri van Heesch,
© 1997-2001