#include <memory>
#include "CkptDAO.h"
#include "CkptTypeRegistry.h"
#include "CkptObjectKey.h"
#include "CkptByteArray.h"
Go to the source code of this file.
Classes | |
class | CkptObject |
Abstract class for all application objects that will be placed in a CkptContainer. More... | |
Defines | |
#define | CkptSimpleStructWrapper(_Tp, WrapperName) |
Macro definition used to wrapper simple POD structs. | |
Enumerations | |
enum | CkptRC { CkptSuccess, CkptFailure } |
enum | CkptObjectState { CKPT_OBJ_UNMANAGED, CKPT_OBJ_MANAGED } |
#define CkptSimpleStructWrapper | ( | _Tp, | |||
WrapperName | ) |
Value:
class WrapperName : public CkptObject { \ public: \ void serialize(DAOInterface &dao) { \ char* dataPtr = (char*)&data; \ dao.byteCopy(dataPtr, sizeof(_Tp)); } \ _Tp* getStruct() { return &data; } \ _Tp* operator->() { return &data; } \ COAL_DECLARE_CLASSNAME(#WrapperName) \ private: _Tp data; \ }; \ COAL_REGISTER_TYPE(WrapperName)
Provides rudimentary serialization routines necessary for handling of structures containing encapsulated data. This CANNOT be used for structures containing pointers, as no references are followed (shallow copy only).
Definition at line 145 of file CkptObject.h.
enum CkptObjectState |
enum CkptRC |