Public Member Functions | List of all members
icomp::ICompositeComponent Class Referenceabstract

Composite component interface. More...

#include <ICompositeComponent.h>

Inheritance diagram for icomp::ICompositeComponent:
icomp::IComponent istd::IPolymorphic icomp::CCompositeComponent icomp::TSimComponentWrap< Base > icomp::TSimComponentsFactory< Base >

Public Member Functions

virtual IComponentGetSubcomponent (const QByteArray &componentId) const =0
 Get access to subcomponent using its ID. More...
 
virtual const IComponentContextGetSubcomponentContext (const QByteArray &componentId) const =0
 Get access to context of subcomponent using its ID. More...
 
virtual IComponentCreateSubcomponent (const QByteArray &componentId) const =0
 Create instance of subcomponent using its ID. More...
 
virtual void OnSubcomponentDeleted (const IComponent *subcomponentPtr)=0
 Called if subcomponent is removed from memory. More...
 
- Public Member Functions inherited from icomp::IComponent
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const =0
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const =0
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)=0
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Composite component interface.

Composite component extends component funtionality providing manangement and access to subcomponents. Please note, that subId for icomp::IComponent::GetInterface will be associated with subcomponent for composed components.

Definition at line 19 of file ICompositeComponent.h.

Member Function Documentation

virtual IComponent* icomp::ICompositeComponent::CreateSubcomponent ( const QByteArray &  componentId) const
pure virtual
virtual IComponent* icomp::ICompositeComponent::GetSubcomponent ( const QByteArray &  componentId) const
pure virtual
virtual const IComponentContext* icomp::ICompositeComponent::GetSubcomponentContext ( const QByteArray &  componentId) const
pure virtual

Get access to context of subcomponent using its ID.

Please note, that this does'n create component instance.

Implemented in icomp::CCompositeComponent, and icomp::TSimComponentWrap< Base >.

virtual void icomp::ICompositeComponent::OnSubcomponentDeleted ( const IComponent subcomponentPtr)
pure virtual

Called if subcomponent is removed from memory.

Parameters
subcomponentPtrpointer to component beeing removed. It cannot be NULL.

Implemented in icomp::CCompositeComponent, and icomp::TSimComponentWrap< Base >.

Referenced by icomp::TComponentWrap< Component >::~TComponentWrap().


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy