persist.h(3)
okay so bestie, welcome to the persist.h(3) manual page! it's giving persistence library energy, and we're gonna get into it. πβ¨
π NAME π
persist.h β literally the Persistence library classes. that's the whole name, no cap. π
β¨ SYNOPSIS β¨
first things first, you gotta include all these headers. don't forget a single one, bestie:
#include <cc++/config.h>
#include <cc++/exception.h>
#include <cc++/missing.h>
#include <cc++/string.h>
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <map>
π Classes π
class ost::TypeManagerβ This class manages the types for generation of the persistent objects. she's the type manager, managing types for persistent object generation. iconic behavior.class ost::TypeManager::Registrationβ This manages a registration to the typemanager - attempting to remove problems with the optimisers. it's giving "registration to the typemanager" and it's trying to fix optimiser problems. we love a problem-solving queen.class ost::BaseObjectβ BaseObject. just BaseObject, bestie. no extra words.class ost::Engineβ Engine. and Engine. periodt.
π Namespaces π
ost
π Macros π
#define NO_COMPRESSION#define NS_PREFIX ost::#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))
π¦ Typedefs π¦
typedef class BaseObject *(* ost::NewBaseObjectFunction) (void)
πΈ Detailed Description πΈ
Persistence library classes. that's it. that's the detailed description. she's short and sweet. π
π Macro Definition Documentation π
okay so here are the macros in detail, bestie. don't skip. they're important. π
π #define CCXX_ENGINEREAD_REF(valref)
#define CCXX_ENGINEREAD_REF(valref)
readBinary((uint8*)&valref,sizeof(valref))
π #define CCXX_ENGINEWRITE_REF(valref)
#define CCXX_ENGINEWRITE_REF(valref) writeBinary((const
uint8*)&valref,sizeof(valref))
π #define DECLARE_PERSISTENCE(ClassType)
#define DECLARE_PERSISTENCE(ClassType)
Value:
public: friend NS_PREFIX Engine& operator>>( NS_PREFIX Engine& ar, ClassType *&ob); friend NS_PREFIX Engine& operator<<( NS_PREFIX Engine& ar, ClassType const &ob); friend NS_PREFIX BaseObject *createNew##ClassType(); virtual const char* getPersistenceID() const; static NS_PREFIX TypeManager::Registration registrationFor##ClassType;
π #define IMPLEMENT_PERSISTENCE(ClassType, FullyQualifiedName)
#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);
π #define NO_COMPRESSION
#define NO_COMPRESSION
π #define NS_PREFIX ost::
#define NS_PREFIX ost::
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code. no cap, Doxygen did that. π€β¨
and that's the tea, bestie! this page is from GNU CommonC++ and it's dated Sun Dec 27 2020, and it's literally persist.h(3). stay slay! ππ
β¨
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms