Main component interface. More...
#include <IComponent.h>
Public Member Functions | |
virtual const ICompositeComponent * | GetParentComponent (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 IComponentContext * | GetComponentContext () 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... | |
![]() | |
virtual | ~IPolymorphic () |
Main component interface.
Definition at line 31 of file IComponent.h.
|
pure virtual |
Get access to component context describing all application-specified component information loaded from components registry.
Implemented in icomp::CCompositeComponent, and icomp::CComponentBase.
Referenced by icomp::TComponentCloneWrap< BaseClass >::CloneMe(), icomp::TMultiAttributeMember< Attribute >::InitInternal(), icomp::TAttributeMember< Attribute >::InitInternal(), and ibase::TModelObserverCompBaseWrap< ObserverComponent >::OnComponentCreated().
|
pure virtual |
Get access to specified component interface.
interfaceType | requested interface. |
subId | some additional ID to identify subelement of this component. |
Implemented in icomp::CCompositeComponent, and icomp::CComponentBase.
Referenced by CompCastPtr(), and icomp::CInterfaceManipBase::ExtractInterface().
|
pure virtual |
Get parent of this component.
Parent is component who created this component. Parent component can be also owner of this component. It means manages life time of this componenent.
ownerOnly | indicate, that parent should be returned only if it owns this component. |
Implemented in icomp::CCompositeComponent, icomp::TSimComponentWrap< Base >, and icomp::CComponentBase.
Referenced by icomp::TComponentCloneWrap< BaseClass >::CloneMe(), CompCastPtr(), icomp::TMultiFactoryMember< Interface >::CreateComponent(), icomp::TFactoryMember< Interface >::CreateComponent(), icomp::TMultiReferenceMember< Interface >::EnsureInitialized(), icomp::TReferenceMember< Interface >::EnsureInitialized(), icomp::TMultiAttributeMember< Attribute >::InitInternal(), and icomp::TAttributeMember< Attribute >::InitInternal().
|
pure virtual |
Set component context of this component.
contextPtr | new value of component context. It can be also NULL. Please avoid to use this method, it is designed for internal use only. |
parentPtr | pointer to parent component, or NULL if this component has no parent. |
isParentOwner | indicate, that life cycle of this component is controller by its parent. |
Implemented in icomp::CCompositeComponent, and icomp::CComponentBase.
Referenced by icomp::TSimComponentsFactory< Base >::CreateInstance().
© 2007-2017 Witold Gantzke and Kirill Lepskiy