CFx SDK Documentation  2023 SP0
Macros
DbClass.h File Reference
#include "TD_PackPush.h"
#include "RxObject.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Macros

#define ODDB_PSEUDO_DECLARE_MEMBERS(ClassName)
 
#define ODDB_PSEUDO_DEFINE_INIT_MEMBERS(ClassName, ParentClass, pseudoConsFn, PseudoBaseClass)
 
#define ODDB_PSEUDO_DEFINE_MEMBERS(ClassName, ParentClass, PseudoBaseClass, DOCREATE)
 

Macro Definition Documentation

◆ ODDB_PSEUDO_DECLARE_MEMBERS

#define ODDB_PSEUDO_DECLARE_MEMBERS (   ClassName)
Value:
public: \
ODRX_DECLARE_MEMBERS(ClassName); \
static OdPseudoConstructorType g_pMainConstr; \
OdRxClass* saveAsClass(OdRxClass* pClass) const
OdRxObjectPtr(* OdPseudoConstructorType)()
Definition: RxObject.h:868

Declares the functions required by pseudo database objects.

Definition at line 49 of file DbClass.h.

◆ ODDB_PSEUDO_DEFINE_INIT_MEMBERS

#define ODDB_PSEUDO_DEFINE_INIT_MEMBERS (   ClassName,
  ParentClass,
  pseudoConsFn,
  PseudoBaseClass 
)

Defines initialization functions for pseudo database objects.

Definition at line 59 of file DbClass.h.

◆ ODDB_PSEUDO_DEFINE_MEMBERS

#define ODDB_PSEUDO_DEFINE_MEMBERS (   ClassName,
  ParentClass,
  PseudoBaseClass,
  DOCREATE 
)
Value:
\
ODRX_DEFINE_RTTI_MEMBERS(ClassName,ParentClass) \
ODRX_DEFINE_PSEUDOCONSTRUCTOR(ClassName,DOCREATE) \
ODDB_PSEUDO_DEFINE_INIT_MEMBERS(ClassName,ParentClass,pseudoConsFn,PseudoBaseClass) \
\
OdPseudoConstructorType ClassName::g_pMainConstr = 0; \
\
OdRxClass* ClassName::saveAsClass(OdRxClass*) const \
{ \
return PseudoBaseClass::saveAsClass(PseudoBaseClass::desc()); \
}
#define ODDB_PSEUDO_DEFINE_INIT_MEMBERS(ClassName, ParentClass, pseudoConsFn, PseudoBaseClass)
Definition: DbClass.h:59
#define ODRX_DEFINE_PSEUDOCONSTRUCTOR(ClassName, DOCREATE)
Definition: RxObject.h:232

Defines RTTI, initialization functions and constructor for pseudo database objects.

Definition at line 103 of file DbClass.h.