![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
Base implementation of component session context. More...
#include <CComponentContext.h>
Classes | |
| struct | AttributeInfo |
Public Member Functions | |
| CComponentContext (const IRegistryElement *elementPtr, const IComponentStaticInfo *staticInfoPtr, const IComponentContext *parentPtr, const QByteArray &contextId) | |
| QByteArray | GetCompleteContextId () const |
| virtual const QByteArray & | GetContextId () const |
| Get ID of this component in the context tree. | |
| virtual const IRegistryElement & | GetRegistryElement () const |
| Get access to component registry element object. | |
| virtual const IComponentStaticInfo & | GetStaticInfo () const |
| Get component static info associated with this context. | |
| virtual const IComponentContext * | GetParentContext () const |
| Get access to parent component context. | |
| virtual const iser::IObject * | GetAttribute (const QByteArray &attributeId, int *definitionLevelPtr=nullptr) const |
| Get attribute using its ID. | |
Public Member Functions inherited from icomp::IComponentContext | |
Static Public Member Functions | |
| static QByteArray | GetHierarchyAddress (const IComponentContext *contextPtr) |
| Get address of this component identifying it in component topology hierarchy. | |
Protected Member Functions | |
| bool | CalcAttributeInfo (const QByteArray &attributeId, AttributeInfo &result) const |
Base implementation of component session context.
This implementation uses icomp::IRegistryElement to generate lilst of attributes. Please note that resolving of exported attribute is done.
Definition at line 29 of file CComponentContext.h.
| icomp::CComponentContext::CComponentContext | ( | const IRegistryElement * | elementPtr, |
| const IComponentStaticInfo * | staticInfoPtr, | ||
| const IComponentContext * | parentPtr, | ||
| const QByteArray & | contextId ) |
|
protected |
|
virtual |
Get attribute using its ID.
| attributeId | ID of attribute. |
| definitionLevelPtr | optional return value. This will be set to number parents you have to iterate to get component where this attribute was defined. If this attribute was defined in actual component it equals 0. |
Implements icomp::IComponentContext.
| QByteArray icomp::CComponentContext::GetCompleteContextId | ( | ) | const |
|
virtual |
Get ID of this component in the context tree.
This should be unique for all elements in the same tree level.
Implements icomp::IComponentContext.
Referenced by ilog::TLoggerCompWrap< Base >::DecorateMessage().
|
static |
Get address of this component identifying it in component topology hierarchy.
Referenced by icomp::TAttributeMember< Attribute >::InitInternal().
|
virtual |
Get access to parent component context.
Implements icomp::IComponentContext.
|
virtual |
Get access to component registry element object.
State of the component context is based on this registry element (part of registry document describing component) and context parent.
Implements icomp::IComponentContext.
|
virtual |
Get component static info associated with this context.
Implements icomp::IComponentContext.
© Witold Gantzke and Kirill Lepskiy