CFx SDK Documentation  2022 SP0
Macros
IfcCommon.h File Reference
#include "daiCommon.h"
#include "RxObject.h"
#include "RxObjectImpl.h"
#include "SmartPtr.h"
#include "RxValue.h"
#include "daiValueTypes.h"
#include "ModuleNames.h"

Go to the source code of this file.

Macros

#define SMARTPTR(classname)   class classname; typedef OdSmartPtr<classname> classname##Ptr; typedef OdArray<classname##Ptr> classname##PtrArray;
 
#define OD_IFC_CONS_DEFINE_MEMBERS(ClassName, ParentClass, DOCREATE, ClassType)
 
#define OD_IFC_CONS_DEFINE_MEMBERS_ALTNAME(ClassName, ParentClass, szClassName, DOCREATE, ClassType)
 
#define OD_IFC_DEFINE_MEMBERS2(ClassName, ParentClass, pseudoConsFn, DwgVer, MaintVer, nProxyFlags, szDWGClassName, szDxfName, szAppName, nCustomFlags, ClassType)
 
#define OD_IFC_DEFINE_INIT_MEMBERS(ClassName, ParentClass, pseudoConsFn, DwgVer, MaintVer, nProxyFlags, szDWGClassName, szDxfName, szAppName, nCustomFlags, ClassType)
 
#define OD_IFC_DEFINE_INIT_MEMBERS_GENERIC(ClassName, CREATE_CLASS_INSTANCE, CREATE_CLASS_INSTANCE2, ClassType)
 
#define OD_IFC_DECLARE_MEMBERS_GENERIC(ClassType, ClassName)
 
#define OD_IFC_DECLARE_MEMBERS(ClassName)    OD_IFC_DECLARE_MEMBERS_GENERIC(OdRxClass, ClassName)
 

Macro Definition Documentation

◆ OD_IFC_CONS_DEFINE_MEMBERS

#define OD_IFC_CONS_DEFINE_MEMBERS (   ClassName,
  ParentClass,
  DOCREATE,
  ClassType 
)
Value:
\
OD_IFC_CONS_DEFINE_MEMBERS_ALTNAME(ClassName,ParentClass,OD_T(#ClassName),DOCREATE,ClassType)
#define OD_T(x)

Definition at line 39 of file IfcCommon.h.

◆ OD_IFC_CONS_DEFINE_MEMBERS_ALTNAME

#define OD_IFC_CONS_DEFINE_MEMBERS_ALTNAME (   ClassName,
  ParentClass,
  szClassName,
  DOCREATE,
  ClassType 
)
Value:
\
OD_IFC_DEFINE_MEMBERS2(ClassName,ParentClass,ClassName::pseudoConstructor,0,0,0,szClassName,OdString::kEmpty,OdString::kEmpty,0,ClassType) \
ODRX_DEFINE_PSEUDOCONSTRUCTOR(ClassName,DOCREATE)
#define ODRX_DEFINE_PSEUDOCONSTRUCTOR(ClassName, DOCREATE)
Definition: RxObject.h:213
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98

Definition at line 43 of file IfcCommon.h.

◆ OD_IFC_DECLARE_MEMBERS

#define OD_IFC_DECLARE_MEMBERS (   ClassName)     OD_IFC_DECLARE_MEMBERS_GENERIC(OdRxClass, ClassName)

Definition at line 138 of file IfcCommon.h.

◆ OD_IFC_DECLARE_MEMBERS_GENERIC

#define OD_IFC_DECLARE_MEMBERS_GENERIC (   ClassType,
  ClassName 
)

Definition at line 103 of file IfcCommon.h.

◆ OD_IFC_DEFINE_INIT_MEMBERS

#define OD_IFC_DEFINE_INIT_MEMBERS (   ClassName,
  ParentClass,
  pseudoConsFn,
  DwgVer,
  MaintVer,
  nProxyFlags,
  szDWGClassName,
  szDxfName,
  szAppName,
  nCustomFlags,
  ClassType 
)
Value:
ClassName, \
(::newOdRxClass(szDWGClassName, ParentClass::desc(), pseudoConsFn, DwgVer, \
MaintVer, nProxyFlags, szDxfName, szAppName, NULL, nCustomFlags)), \
(::newOdRxClass(szDWGClassName, ParentClass::desc(), pseudoConsFn, DwgVer, \
MaintVer, nProxyFlags, szDxfName, szAppName, pAppNameChangeCallback, nCustomFlags)), \
ClassType)
#define NULL
Definition: GsProperties.h:177
#define OD_IFC_DEFINE_INIT_MEMBERS_GENERIC(ClassName, CREATE_CLASS_INSTANCE, CREATE_CLASS_INSTANCE2, ClassType)
Definition: IfcCommon.h:68
FIRSTDLL_EXPORT OdRxClass * newOdRxClass(const OdString &sClassName, OdRxClass *pBaseClass, OdPseudoConstructorType pConstr=0, int DwgVer=0, int MaintVer=0, int nProxyFlags=0, const OdString &sDxfName=OdString::kEmpty, const OdString &sAppName=OdString::kEmpty, AppNameChangeFuncPtr fNameChangeFunc=NULL, int nCustomFlags=0)

Definition at line 57 of file IfcCommon.h.

◆ OD_IFC_DEFINE_INIT_MEMBERS_GENERIC

#define OD_IFC_DEFINE_INIT_MEMBERS_GENERIC (   ClassName,
  CREATE_CLASS_INSTANCE,
  CREATE_CLASS_INSTANCE2,
  ClassType 
)

Definition at line 68 of file IfcCommon.h.

◆ OD_IFC_DEFINE_MEMBERS2

#define OD_IFC_DEFINE_MEMBERS2 (   ClassName,
  ParentClass,
  pseudoConsFn,
  DwgVer,
  MaintVer,
  nProxyFlags,
  szDWGClassName,
  szDxfName,
  szAppName,
  nCustomFlags,
  ClassType 
)
Value:
\
ODRX_DEFINE_RTTI_MEMBERS(ClassName,ParentClass) \
OD_IFC_DEFINE_INIT_MEMBERS(ClassName,ParentClass,pseudoConsFn, \
DwgVer,MaintVer,nProxyFlags,szDWGClassName,szDxfName,szAppName,nCustomFlags, ClassType)
#define OD_IFC_DEFINE_INIT_MEMBERS(ClassName, ParentClass, pseudoConsFn, DwgVer, MaintVer, nProxyFlags, szDWGClassName, szDxfName, szAppName, nCustomFlags, ClassType)
Definition: IfcCommon.h:57

Definition at line 49 of file IfcCommon.h.

◆ SMARTPTR

#define SMARTPTR (   classname)    class classname; typedef OdSmartPtr<classname> classname##Ptr; typedef OdArray<classname##Ptr> classname##PtrArray;

Definition at line 37 of file IfcCommon.h.