Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

persist.h File Reference

#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 _ENGINEWRITE_REF(valref)   WriteBinary((const uint8*)&valref,sizeof(valref))
#define _ENGINEREAD_REF(valref)   ReadBinary((uint8*)&valref,sizeof(valref))


Define Documentation

#define DECLARE_PERSISTENCE ClassType  
 

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;

#define IMPLEMENT_PERSISTENCE ClassType,
FullyQualifiedName  
 

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);

#define _ENGINEREAD_REF valref      ReadBinary((uint8*)&valref,sizeof(valref))
 

#define _ENGINEWRITE_REF valref      WriteBinary((const uint8*)&valref,sizeof(valref))
 


Generated at Wed Dec 5 07:05:25 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001