ACF $AcfVersion:0$
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
icomp::CComponentContext Class Reference

Base implementation of component session context. More...

#include <CComponentContext.h>

Inheritance diagram for icomp::CComponentContext:
icomp::IComponentContext istd::IPolymorphic icomp::CCompositeComponentContext

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 override
 Get ID of this component in the context tree.
 
virtual const IRegistryElementGetRegistryElement () const override
 Get access to component registry element object.
 
virtual const IComponentStaticInfoGetStaticInfo () const override
 Get component static info associated with this context.
 
virtual const IComponentContextGetParentContext () const override
 Get access to parent component context.
 
virtual const iser::IObjectGetAttribute (const QByteArray &attributeId, int *definitionLevelPtr=NULL) const override
 Get attribute using its ID.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

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
 

Detailed Description

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 26 of file CComponentContext.h.

Constructor & Destructor Documentation

◆ CComponentContext()

icomp::CComponentContext::CComponentContext ( const IRegistryElement elementPtr,
const IComponentStaticInfo staticInfoPtr,
const IComponentContext parentPtr,
const QByteArray &  contextId 
)

Member Function Documentation

◆ CalcAttributeInfo()

bool icomp::CComponentContext::CalcAttributeInfo ( const QByteArray &  attributeId,
AttributeInfo result 
) const
protected

◆ GetAttribute()

virtual const iser::IObject * icomp::CComponentContext::GetAttribute ( const QByteArray &  attributeId,
int *  definitionLevelPtr = NULL 
) const
overridevirtual

Get attribute using its ID.

Parameters
attributeIdID of attribute.
definitionLevelPtroptional 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.

◆ GetCompleteContextId()

QByteArray icomp::CComponentContext::GetCompleteContextId ( ) const

◆ GetContextId()

virtual const QByteArray & icomp::CComponentContext::GetContextId ( ) const
overridevirtual

Get ID of this component in the context tree.

This should be unique for all elements in the same tree level.

Implements icomp::IComponentContext.

◆ GetHierarchyAddress()

static QByteArray icomp::CComponentContext::GetHierarchyAddress ( const IComponentContext contextPtr)
static

Get address of this component identifying it in component topology hierarchy.

Referenced by icomp::TAttributeMember< Attribute >::InitInternal().

◆ GetParentContext()

virtual const IComponentContext * icomp::CComponentContext::GetParentContext ( ) const
overridevirtual

Get access to parent component context.

Implements icomp::IComponentContext.

◆ GetRegistryElement()

virtual const IRegistryElement & icomp::CComponentContext::GetRegistryElement ( ) const
overridevirtual

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.

◆ GetStaticInfo()

virtual const IComponentStaticInfo & icomp::CComponentContext::GetStaticInfo ( ) const
overridevirtual

Get component static info associated with this context.

Implements icomp::IComponentContext.


The documentation for this class was generated from the following file: