Persistence library classes.
More...
#include <cc++/config.h>
#include <cc++/exception.h>
#include <cc++/missing.h>
#include <cc++/string.h>
#include <zlib.h>
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <map>
Go to the source code of this file.
Detailed Description
Persistence library classes.
Define Documentation
#define CCXX_ENGINEREAD_REF |
( |
|
valref |
) |
readBinary((uint8*)&valref,sizeof(valref)) |
#define CCXX_ENGINEWRITE_REF |
( |
|
valref |
) |
writeBinary((const uint8*)&valref,sizeof(valref)) |
#define DECLARE_PERSISTENCE |
( |
|
ClassType |
) |
|
#define IMPLEMENT_PERSISTENCE |
( |
|
ClassType, |
|
|
|
FullyQualifiedName | |
|
) |
| | |
Value:NS_PREFIX BaseObject *createNew##ClassType() { return new ClassType; } \
const char* ClassType::getPersistenceID() const {return FullyQualifiedName;} \
NS_PREFIX Engine& operator>>(NS_PREFIX Engine& ar, ClassType &ob) \
{ ar >> (NS_PREFIX BaseObject &) ob; return ar; } \
NS_PREFIX Engine& operator>>(NS_PREFIX Engine& ar, ClassType *&ob) \
{ ar >> (NS_PREFIX BaseObject *&) ob; return ar; } \
NS_PREFIX Engine& operator<<(NS_PREFIX Engine& ar, ClassType const &ob) \
{ ar << (NS_PREFIX BaseObject const *)&ob; return ar; } \
NS_PREFIX TypeManager::Registration \
ClassType::registrationFor##ClassType(FullyQualifiedName, \
createNew##ClassType);