persist.h(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

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