CFx SDK Documentation 2024 SP0
|
#include <RxOverrule.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdRxOverrule) | |
virtual | ~OdRxOverrule () |
virtual bool | isApplicable (const OdRxObject *pOverruledSubject) const =0 |
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 OdResult | addOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule, bool bAddAtLast=false) |
static OdResult | removeOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule) |
static void | setIsOverruling (bool bIsOverruling) |
static bool | isOverruling () |
static bool | hasOverrule (const OdRxObject *pSubject, OdRxClass *pOverruleClass) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Friends | |
class | OdRxOverruleInternals |
This class is an abstract base class for implementation of overrules. An overrule can be registered or unregistered, and overrules can be globally activated or deactivated. Overrules are internally managed by pairs of classes named as "target" and "overrule." The "target" is the class to which the overrule applies. Classes can have multiple overrules registered.
Corresponding C++ library: TD_Db <group OdRx_Classes>
Definition at line 41 of file RxOverrule.h.
|
virtual |
Destructor deletes an instance of this class.
|
static |
Registers an object for a given class to be overruled. This method returns eOk if successful.
pClass | [in] A raw pointer to the class description object to which the overrule applies. |
pOverrule | [in] A raw pointer to an object to be overruled. |
bAddAtLast | [in] Determines whether the pair should be added in the end of the overrule collection. |
|
static |
Checks whether the specified overrule handles a given object and returns True if the object is to be handled by overrule, or False, otherwise.
pOverruleClass | [in] A raw pointer to the class description object to which the overrule applies. |
pSubject | [in] A raw pointer to an object to be overruled. |
|
pure virtual |
Determines whether the overrule is applicable and returns True if the overrule can be applied, or False, otherwise. It is a pure virtual method that must be implemented in the derived class.
pOverruledSubject | [in] A raw pointer to an object to be overruled. |
|
inlinestatic |
Checks whether the overruling mechanism is enabled (true) or disabled (false).
Definition at line 88 of file RxOverrule.h.
OdRxOverrule::ODRX_DECLARE_MEMBERS | ( | OdRxOverrule | ) |
|
static |
Unregisters an object for the given class. This method returns eOk if successful.
pClass | [in] A raw pointer to the class description object to which the overrule applies. |
pOverrule | [in] A raw pointer to an object to be overruled. |
|
static |
Enables or disables the overruling mechanism.
bIsOverruling | [in] Determines whether the overruling mechanism is enabled (true) or disabled (false). |
|
friend |
DOM
Definition at line 107 of file RxOverrule.h.