CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
IfcRxProperties.h File Reference
#include "OdaCommon.h"
#include "daiRxProperties.h"
#include "IfcValueTypes.h"

Go to the source code of this file.

Macros

#define ODRX_DAI_DECLARE_RX_PROPERTY_COLLECTION_TREE(Object, Name, Type, Category, Description, HierarchyLevel)
 

Macro Definition Documentation

◆ ODRX_DAI_DECLARE_RX_PROPERTY_COLLECTION_TREE

#define ODRX_DAI_DECLARE_RX_PROPERTY_COLLECTION_TREE ( Object,
Name,
Type,
Category,
Description,
HierarchyLevel )
Value:
struct Object ## Name ## Property : OdRxCollectionProperty {\
static OdRxMemberPtr createObject(const OdRxClass* owner)\
{\
((Object ## Name ## Property*)res.get())->init(__OD_T(#Name), &OdRxValueType::Desc<Type>::value(), owner);\
((Object ## Name ## Property*)res.get())->attributes().add(OdIfcRxDisplayAsAttribute::createObject(false, true)); \
if( OdString::kEmpty != Description ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdRxDescriptionAttribute::createObject(OD_T(Description))); \
if( OdString::kEmpty != Category ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdRxUiPlacementAttribute::createObject(OD_T(Category), 1)); \
if( OdString::kEmpty != HierarchyLevel ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdDAIRxHierarchyLevelAttribute::createObject()); \
return res;\
}\
virtual OdResult subTryGetCount(const OdRxObject* pO, int& count) const ODRX_OVERRIDE;\
}
#define OD_T(x)
#define __OD_T(x)
#define ODRX_OVERRIDE
OdResult
Definition OdResult.h:29
OdSmartPtr< OdRxMember > OdRxMemberPtr
Definition RxMember.h:51
OdSmartPtr< OdRxValueIterator > OdRxValueIteratorPtr
Definition RxProperty.h:175
static OdRxAttributePtr createObject(bool bShowIndex, bool bShowObjectType)
virtual OdResult subTryGetCount(const OdRxObject *pO, int &count) const
virtual OdRxValueIteratorPtr subNewValueIterator(const OdRxObject *pO) const
static OdRxAttributePtr createObject(const OdString &description, unsigned int id=0, unsigned int sourceHint=0)
const OdRxObject * owner() const
static OdSmartPtr< TInterface > createObject(Args &&... args)
static OdRxAttributePtr createObject(const OdString &category, unsigned int weight)
const T * get() const
Definition SmartPtr.h:315
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition OdString.h:100
GLsizei GLsizei * count
Definition gles2_ext.h:276
static const OdRxValueType & value()

Definition at line 32 of file IfcRxProperties.h.