CFx SDK Documentation 2024 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 58 of file RxMember.h.
|
protectedvirtual |
|
protected |
OdRxAttributeCollection & OdRxMember::attributes | ( | ) | ||
throw | ( | |||
) |
Gets the attributes that are used on some properties to modify their behavior. E.g., OdRxLocalizedNameAttribute defines localName(). See RxAttributes.h for more information.
const OdRxAttributeCollection & OdRxMember::attributes | ( | ) | const | |
throw | ( | |||
) |
Gets the attributes that are used on some properties to modify their behavior. E.g., OdRxLocalizedNameAttribute defines localName(). See RxAttributes.h for more information.
const OdArray< OdRxMemberPtr > * OdRxMember::children | ( | ) | const | |
throw | ( | |||
) |
Gets the array of subproperties (child properties).
|
static |
Removes this member from the owner and fires "goodbye" reactors registered with the OdRxMemberQueryEngine.
pMember | [in] Property to be removed. |
|
protected |
Assigns an unlocalized name, type and owner to this member.
OdString OdRxMember::localName | ( | ) | const | |
throw | ( | |||
) |
Gets the localized name (can be loaded from resources via OdRxLocalizedNameAttribute::getLocalizedName).
const OdString & OdRxMember::name | ( | ) | const | |
throw | ( | |||
) |
Gets the static unlocalized name of the property.
OdRxMember::ODRX_DECLARE_MEMBERS | ( | OdRxMember | ) |
const OdRxObject * OdRxMember::owner | ( | ) | const | |
throw | ( | |||
) |
Gets the owner of the property. For the usual properties owner is the OdRxClass they are attached to. For subproperties owner is the main property.
|
protectedvirtual |
Adds an array of member children.
children | [in] An array of children. |
|
protectedvirtual |
Adds properties in bulk.
|
protectedvirtual |
Descendants may overload localized name obtaining method.
const OdRxValueType & OdRxMember::type | ( | ) | const | |
throw | ( | |||
) |
Gets the property value type.
|
friend |
Definition at line 140 of file RxMember.h.
|
protected |
Definition at line 176 of file RxMember.h.