|
ACF $AcfVersion:0$
|
Main component interface. More...
#include <IComponent.h>
Public Member Functions | |
| virtual const icomp::IComponent * | 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 IComponentContextSharedPtr | GetComponentContext () const =0 |
| Get access to component context describing all application-specified component information loaded from components registry. | |
| virtual void | SetComponentContext (const IComponentContextSharedPtr &contextPtr, const icomp::IComponent *parentPtr, bool isParentOwner)=0 |
| Set component context of this component. | |
Public Member Functions inherited from istd::IPolymorphic | |
| 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::CComponentBase, icomp::CCompositeComponent, and icomp::TSimComponentsFactory< Base >.
Referenced by icomp::TComponentCloneWrap< BaseClass >::CloneMe(), 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, icomp::CCompositeComponent, and icomp::TSimComponentsFactory< Base >.
Referenced by CompCastPtr(), CompCastPtr(), icomp::CInterfaceManipBase::ExtractInterface(), icomp::TSimComponentsFactory< Base >::GetInterface(), and QueryInterface().
|
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, icomp::TSimComponentsFactory< Base >, and icomp::TSimComponentWrap< Base >.
Referenced by icomp::TComponentCloneWrap< BaseClass >::CloneMe(), CompCastPtr(), CompCastPtr(), icomp::TSimComponentsFactory< Base >::GetParentComponent(), icomp::TAttributeMember< Attribute >::InitInternal(), icomp::TMultiAttributeMember< Attribute >::InitInternal(), and QueryInterface().
|
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::TSimComponentsFactory< Base >, icomp::CComponentBase, and icomp::CCompositeComponent.
Referenced by icomp::TSimComponentsFactory< Base >::CreateInstance().