CFx SDK Documentation 2024 SP0
|
#include <RxMember.h>
Public Member Functions | |
OdRxMemberPtr | find (const OdRxObject *pO, const OdChar *name, const OdRxMemberQueryContext *pContext=NULL, bool bQueryFacets=true) const |
OdRxMemberIteratorPtr | newMemberIterator (const OdRxObject *pO, const OdRxMemberQueryContext *pContext=NULL) const |
const OdRxMemberQueryContext * | defaultContext () const |
const OdRxPromotingQueryContext * | promotingContext () const |
void | addFacetProvider (OdRxFacetProvider *pProvider) |
void | removeFacetProvider (OdRxFacetProvider *pProvider) |
void | addReactor (OdRxMemberReactor *pReactor) |
void | removeReactor (OdRxMemberReactor *pReactor) |
Static Public Member Functions | |
static OdRxMemberQueryEngine * | theEngine () |
Friends | |
class | OdRxMemberQueryEngineImpl |
<group OdRx_Classes>
This class provides ability to enumerate and find members associated with the given object, add new property providers (OdRxFacetProvider) and reactors.
Definition at line 468 of file RxMember.h.
void OdRxMemberQueryEngine::addFacetProvider | ( | OdRxFacetProvider * | pProvider | ) |
Registers a new facet provider (to provide extension classes with additional members).
pProvider | [in] Facet provider to be registered. |
void OdRxMemberQueryEngine::addReactor | ( | OdRxMemberReactor * | pReactor | ) |
Registers a new reactor.
pReactor | [in] Reactor to be registered. |
const OdRxMemberQueryContext * OdRxMemberQueryEngine::defaultContext | ( | ) | const |
Gets a reference to the default query context. Query context handles collecting members in a list.
OdRxMemberPtr OdRxMemberQueryEngine::find | ( | const OdRxObject * | pO, |
const OdChar * | name, | ||
const OdRxMemberQueryContext * | pContext = NULL , |
||
bool | bQueryFacets = true |
||
) | const |
Finds a member by name, uses defaultContext() if no context is passed.
pO | [in] Object to search the member in. |
name | [in] Name of the member to be found. |
pContext | [in] Context. Optional. |
bQueryFacets | [in] Flag determines if the function will query members added dynamically by facet providers. Default value is true. |
OdRxMemberIteratorPtr OdRxMemberQueryEngine::newMemberIterator | ( | const OdRxObject * | pO, |
const OdRxMemberQueryContext * | pContext = NULL |
||
) | const |
Enumerates all the properties of the object, uses defaultContext() if no context is passed.
pO | [in] Object to enumerate the properties of. |
pContext | [in] Context. Optional. |
const OdRxPromotingQueryContext * OdRxMemberQueryEngine::promotingContext | ( | ) | const |
Reference to the default promoting query context. Handles collecting members in a list, but unlike the default, this one includes children (sub-properties) in the list, instead of parents. For example OdDbLine property "EndPoint" would be replaced by "EndPoint/X", "EndPoint/Y", "EndPoint/Z" if queried using this context.
void OdRxMemberQueryEngine::removeFacetProvider | ( | OdRxFacetProvider * | pProvider | ) |
Unregisters an extension provider.
pProvider | [in] Facet provider to be removed. |
void OdRxMemberQueryEngine::removeReactor | ( | OdRxMemberReactor * | pReactor | ) |
Unregisters a reactor.
pReactor | [in] Reactor to be removed. |
|
static |
This singleton object is the main access point to the member engine services.
|
friend |
Definition at line 558 of file RxMember.h.