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

Main component interface. More...

#include <IComponent.h>

Inheritance diagram for icomp::IComponent:
istd::IPolymorphic icomp::CComponentBase icomp::ICompositeComponent i2d::TObject2dCompWrap< BaseObject2d > ibase::CApplicationInfoComp ibase::CInstantiatorComp ibase::CModelBinderComp ibase::CMultiObserverBinderComp ibase::CObjectQueueComp ibase::CObjectSynchronizerComp ibase::CUuidComp ibase::CVersionInfoComp ibase::TComposedFactoryComp< Interface > icomp::TMakeComponentWrap< Base, Interface1, Interface2, Interface3, Interface4, Interface5, Interface6, Interface7, Interface8, Interface9, Interface10 > idoc::CCompositeDocumentTemplateComp idoc::CSelectedDocModelBinderComp idoc::CSerializedUndoManagerComp idoc::CSingleDocumentTemplateComp idoc::CTextDocumentComp idoc::CTextFileLoaderComp ifile::CComposedFileMetaInfoProviderComp ifile::CComposedFilePersistenceComp ifile::CFileNameParamComp ifile::CFileTypeInfoComp ifile::CSystemLocationComp iimg::CComposedBitmapProviderComp iimg::CMultiPageBitmapComp iimg::CMultiPageBitmapSequenceComp iloggui::CMessageBoxComp iprm::CComposedParamsSetComp iprm::CEnableableParamComp iprm::CFilteredOptionsListComp iprm::CManagerParamsSetShadowerComp iprm::CNameParamComp iprm::COptionsManagerComp iprm::CParamsManagerCompBaseAttr iprm::CSelectableParamsSetComp iprm::CSelectionConstraintsComp iprm::CSelectionParamComp iprm::CVariableParamComp iqt2d::CSceneBinderComp iqt2d::CSelectableSceneExtenderComp iqt::CApplicationSettingsProviderComp iqt::CIniSettingsProviderComp iqtdoc::CDocumentImportExportCommandComp iqtdoc::CDoxygenHelpFileProviderComp iqtdoc::CHtmlHelpViewerComp iqtdoc::CSingletonDocApplicationComp iqtdoc::CStaticHelpFileProviderComp iqtgui::CApplicationCompBase iqtgui::CCommandsBinderComp iqtgui::CCommandsMultiplexerComp iqtgui::CDialogGuiComp iqtgui::CFreeWidgetGuiComp iqtgui::CIconProviderComp iqtgui::CModelEditorGuiComp iqtgui::CStatusBarWidgetComp iview::CColorSchemaPenAttr iview::CShapeStatusInfoComp iview::CSimpleShapeFactoryComp ibase::TLocalizableWrap< icomp::CComponentBase > ilog::TMessageDelegatorComp< icomp::CComponentBase > i2d::TObject2dCompWrap< CAnnulus > i2d::TObject2dCompWrap< CAnnulusSegment > i2d::TObject2dCompWrap< CArc > i2d::TObject2dCompWrap< CCircle > i2d::TObject2dCompWrap< CLine2d > i2d::TObject2dCompWrap< COrientedCircle > i2d::TObject2dCompWrap< CPolygon > i2d::TObject2dCompWrap< CPolyline > i2d::TObject2dCompWrap< CPosition2d > i2d::TObject2dCompWrap< CQuadrangle > i2d::TObject2dCompWrap< CRectangle > i2d::TObject2dCompWrap< CTubePolyline > i2d::TObject2dCompWrap< i2d::CParallelogram > icomp::CCompositeComponent icomp::TSimComponentWrap< Base >

Public Member Functions

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

Main component interface.

Definition at line 31 of file IComponent.h.

Member Function Documentation

virtual const IComponentContext* icomp::IComponent::GetComponentContext ( ) const
pure virtual
virtual void* icomp::IComponent::GetInterface ( const istd::CClassInfo interfaceType,
const QByteArray &  subId = "" 
)
pure virtual

Get access to specified component interface.

Parameters
interfaceTyperequested interface.
subIdsome additional ID to identify subelement of this component.

Implemented in icomp::CCompositeComponent, and icomp::CComponentBase.

Referenced by CompCastPtr(), and icomp::CInterfaceManipBase::ExtractInterface().

virtual const ICompositeComponent* icomp::IComponent::GetParentComponent ( bool  ownerOnly = false) const
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.

Parameters
ownerOnlyindicate, that parent should be returned only if it owns this component.
Returns
pointer to parent component or NULL if parent is not accessible.

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().

virtual void icomp::IComponent::SetComponentContext ( const icomp::IComponentContext contextPtr,
const ICompositeComponent parentPtr,
bool  isParentOwner 
)
pure virtual

Set component context of this component.

Parameters
contextPtrnew value of component context. It can be also NULL. Please avoid to use this method, it is designed for internal use only.
parentPtrpointer to parent component, or NULL if this component has no parent.
isParentOwnerindicate, that life cycle of this component is controller by its parent.

Implemented in icomp::CCompositeComponent, and icomp::CComponentBase.

Referenced by icomp::TSimComponentsFactory< Base >::CreateInstance().


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy