CFx SDK Documentation  2023 SP0
Classes | Macros
SmartClsIdPtr.h File Reference
#include "TD_PackPush.h"
#include "SmartPtr.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

class  OdClsIdSmartPtr< ClsIdRetriever, T >
 

Macros

#define ODRX_DEFINE_CLSID_RETRIEVER(Class)
 
#define ODRX_DEFINE_CLSID_SMARTPTR(Class)
 

Macro Definition Documentation

◆ ODRX_DEFINE_CLSID_RETRIEVER

#define ODRX_DEFINE_CLSID_RETRIEVER (   Class)
Value:
class OdRxClsIdHolderFor_##Class\
{\
public:\
static inline const OdRxClass* classId()\
{\
OdRxClass* pClass = static_cast<OdRxClass*>(::odrxClassDictionary()->getAt(OD_T(#Class)).get());\
if(!pClass)\
throw OdError(eNotInitializedYet);\
return pClass;\
}\
}
#define OD_T(x)
FIRSTDLL_EXPORT OdRxDictionaryPtr odrxClassDictionary()
virtual OdRxObjectPtr getAt(const OdString &key) const =0
OdRxObject * get()
Definition: RxObject.h:522
OdRxClass Class
Definition: RxFS.h:42

Definition at line 35 of file SmartClsIdPtr.h.

◆ ODRX_DEFINE_CLSID_SMARTPTR

#define ODRX_DEFINE_CLSID_SMARTPTR (   Class)
Value:

Definition at line 48 of file SmartClsIdPtr.h.