![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Main component interface. More...
#include <IComponent.h>
Public Member Functions | |
virtual const ICompositeComponent * | GetParentComponent (bool ownerOnly=false) const =0 |
Get parent of this component. | |
virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0 |
Get access to specified component interface. | |
virtual const IComponentContext * | GetComponentContext () const =0 |
Get access to component context describing all application-specified component information loaded from components registry. | |
virtual void | SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)=0 |
Set component context of this component. | |
Main component interface.
Definition at line 34 of file IComponent.h.
|
pure virtual |
Get access to component context describing all application-specified component information loaded from components registry.
Implemented in icomp::CComponentBase, and icomp::CCompositeComponent.
Referenced by icomp::TAttributeMember< Attribute >::InitInternal(), icomp::TMultiAttributeMember< 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::CComponentBase, and icomp::CCompositeComponent.
Referenced by 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::CComponentBase, icomp::CCompositeComponent, and icomp::TSimComponentWrap< Base >.
Referenced by icomp::TFactoryMember< Interface >::CreateComponent(), icomp::TMultiFactoryMember< Interface >::CreateComponent(), icomp::TMultiReferenceMember< Interface >::EnsureInitialized(), icomp::TReferenceMember< Interface >::EnsureInitialized(), icomp::TAttributeMember< Attribute >::InitInternal(), and icomp::TMultiAttributeMember< Attribute >::InitInternal().
|
pure virtual |
Set component context of this component.
contextPtr | new value of component context. It can be also nullptr. Please avoid to use this method, it is designed for internal use only. |
parentPtr | pointer to parent component, or nullptr if this component has no parent. |
isParentOwner | indicate, that life cycle of this component is controller by its parent. |
Implemented in icomp::CComponentBase, and icomp::CCompositeComponent.
© Witold Gantzke and Kirill Lepskiy