CkptObject.h File Reference

#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 Documentation

#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)
Macro definition used to wrapper simple POD structs.

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.


Enumeration Type Documentation

enum CkptObjectState

Enumerator:
CKPT_OBJ_UNMANAGED 
CKPT_OBJ_MANAGED 

Definition at line 11 of file CkptObject.h.

enum CkptRC

Enumerator:
CkptSuccess 
CkptFailure 

Definition at line 10 of file CkptObject.h.


Generated on Fri Apr 27 17:20:01 2007 for aiscoal by  doxygen 1.5.2