CFx SDK Documentation
2022 SP0
|
#include <RxMember.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdRxMember) | |
const OdString & | name () const throw () |
OdString | localName () const throw () |
const OdRxValueType & | type () const throw () |
const OdRxAttributeCollection & | attributes () const throw () |
OdRxAttributeCollection & | attributes () throw () |
const OdRxObject * | owner () const throw () |
const OdArray< OdRxMemberPtr > * | children () const throw () |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
static void | deleteMember (const OdRxMember *pMember) throw () |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions | |
virtual | ~OdRxMember () |
OdRxMember (OdRxMemberImpl *) | |
virtual OdString | subLocalName () const |
virtual OdResult | subChildren (OdArray< OdRxMemberPtr > &children) const |
virtual OdResult | subChildrenEx (OdArray< OdRxMemberPtr > *&pChildren) const |
void | init (const OdString &name, const OdRxValueType *type, const OdRxObject *owner=0) |
Protected Attributes | |
OdRxMemberImpl * | m_pImpl |
Friends | |
class | OdRxMemberImpl |
Base class for properties and methods.
<group OdRx_Classes>
Definition at line 51 of file RxMember.h.
|
protectedvirtual |
|
protected |
OdRxAttributeCollection& OdRxMember::attributes | ( | ) | ||
throw | ( | |||
) |
const OdRxAttributeCollection& OdRxMember::attributes | ( | ) | const | |
throw | ( | |||
) |
Attributes are used on some properties to modify their behaviour. E.g. OdRxLocalizedNameAttribute defines localName() look at RxAttributes.h for more info
const OdArray<OdRxMemberPtr>* OdRxMember::children | ( | ) | const | |
throw | ( | |||
) |
Some properties may have child properties, e.g. "EndPoint" property of OdDbLine has subproperties "EndPoint/X", "EndPoint/Y", "EndPoint/Z"
|
static |
This method should be used to delete properties while unloading. It removes this member from the owner, and fires "goodbye" reactors registered with the OdRxMemberQueryEngine.
|
protected |
Initialization method used by descendants to assign unlocalized name, type and owner of this member.
OdString OdRxMember::localName | ( | ) | const | |
throw | ( | |||
) |
Localized name (may be loaded from resources via OdRxLocalizedNameAttribute::getLocalizedName)
const OdString& OdRxMember::name | ( | ) | const | |
throw | ( | |||
) |
Static unlocalized name of the property.
OdRxMember::ODRX_DECLARE_MEMBERS | ( | OdRxMember | ) |
const OdRxObject* OdRxMember::owner | ( | ) | const | |
throw | ( | |||
) |
For the usual properties owner is the OdRxClass they are attached to. For subproperties owner is the main property.
|
protectedvirtual |
First call to children call subChildren, if it returned eNotApplicable then subChildrenEx is called. subChildren is expected to adds members children array.
|
protectedvirtual |
subChildrenEx allows adding properties in bulk. pChildren array is managed by the function itself.
|
protectedvirtual |
Descendants may overload localized name obtaining method.
const OdRxValueType& OdRxMember::type | ( | ) | const | |
throw | ( | |||
) |
Property type.
|
friend |
Definition at line 93 of file RxMember.h.
|
protected |
Definition at line 117 of file RxMember.h.