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
 Get ID of this component in the context tree. More...
 
virtual const IRegistryElementGetRegistryElement () const
 Get access to component registry element object. More...
 
virtual const
IComponentStaticInfo
GetStaticInfo () const
 Get component static info associated with this context. More...
 
virtual const IComponentContextGetParentContext () const
 Get access to parent component context. More...
 
virtual const iser::IObjectGetAttribute (const QByteArray &attributeId, int *definitionLevelPtr=NULL) const
 Get attribute using its ID. More...
 
- 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. More...
 

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

Constructor & Destructor Documentation

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

Member Function Documentation

bool icomp::CComponentContext::CalcAttributeInfo ( const QByteArray &  attributeId,
AttributeInfo result 
) const
protected
virtual const iser::IObject* icomp::CComponentContext::GetAttribute ( const QByteArray &  attributeId,
int *  definitionLevelPtr = NULL 
) const
virtual

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.

QByteArray icomp::CComponentContext::GetCompleteContextId ( ) const
virtual const QByteArray& icomp::CComponentContext::GetContextId ( ) 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 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().

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

Get access to parent component context.

Implements icomp::IComponentContext.

virtual const IRegistryElement& icomp::CComponentContext::GetRegistryElement ( ) const
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 const IComponentStaticInfo& icomp::CComponentContext::GetStaticInfo ( ) const
virtual

Get component static info associated with this context.

Implements icomp::IComponentContext.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy