|
ACF $AcfVersion:0$
|
Simulation wrapper of component. More...
#include <TSimComponentsFactory.h>
Public Member Functions | |
| TSimComponentsFactory () | |
| TSimComponentWrap< Base > * | operator-> () |
| virtual istd::IFactoryInfo::KeyList | GetFactoryKeys () const override |
| Returns all possible keys for this factory. | |
| virtual istd::TUniqueInterfacePtr< icomp::IComponent > | CreateInstance (const QByteArray &keyId="") const override |
Create an instance of the object, mapped to the keyId keyId. | |
| virtual IComponentSharedPtr | GetSubcomponent (const QByteArray &componentId) const override |
| Get access to subcomponent using its ID. | |
| virtual IComponentContextSharedPtr | GetSubcomponentContext (const QByteArray &componentId) const override |
| Get access to context of subcomponent using its ID. | |
| virtual IComponentUniquePtr | CreateSubcomponent (const QByteArray &componentId) const override |
| Create instance of subcomponent using its ID. | |
| virtual void | OnSubcomponentDeleted (const IComponent *subcomponentPtr) override |
| Called if subcomponent is removed from memory. | |
| virtual const icomp::IComponent * | GetParentComponent (bool ownerOnly=false) const override |
| Get parent of this component. | |
| virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") override |
| Get access to specified component interface. | |
| virtual icomp::IComponentContextSharedPtr | GetComponentContext () const override |
| Get access to component context describing all application-specified component information loaded from components registry. | |
| virtual void | SetComponentContext (const icomp::IComponentContextSharedPtr &contextPtr, const icomp::IComponent *parentPtr, bool isParentOwner) override |
| Set component context of this component. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Additional Inherited Members | |
Public Types inherited from istd::TIFactory< icomp::IComponent > | |
| typedef icomp::IComponent | InterfaceType |
Public Types inherited from istd::IFactoryInfo | |
| typedef QSet< QByteArray > | KeyList |
Simulation wrapper of component.
It allows to use components directly from static linked libraries, without component framework.
Definition at line 24 of file TSimComponentsFactory.h.
| icomp::TSimComponentsFactory< Base >::TSimComponentsFactory | ( | ) |
Definition at line 64 of file TSimComponentsFactory.h.
References icomp::TSimComponentWrap< Base >::InitComponent().
|
overridevirtual |
Create an instance of the object, mapped to the keyId keyId.
| keyId |
Implements istd::TIFactory< icomp::IComponent >.
Definition at line 82 of file TSimComponentsFactory.h.
References icomp::IComponent::SetComponentContext().
|
overridevirtual |
Create instance of subcomponent using its ID.
Implements icomp::ICompositeComponent.
Definition at line 114 of file TSimComponentsFactory.h.
References NULL.
|
overridevirtual |
Get access to component context describing all application-specified component information loaded from components registry.
Implements icomp::IComponent.
Definition at line 149 of file TSimComponentsFactory.h.
|
overridevirtual |
Returns all possible keys for this factory.
Retrieves the complete set of keys (identifiers) that this factory can use to create objects. Each key corresponds to a specific object type or variant that the factory knows how to instantiate.
Implements istd::IFactoryInfo.
Definition at line 73 of file TSimComponentsFactory.h.
|
overridevirtual |
Get access to specified component interface.
| interfaceType | requested interface. |
| subId | some additional ID to identify subelement of this component. |
Implements icomp::IComponent.
Definition at line 142 of file TSimComponentsFactory.h.
References icomp::IComponent::GetInterface().
|
overridevirtual |
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. |
Implements icomp::IComponent.
Definition at line 135 of file TSimComponentsFactory.h.
References icomp::IComponent::GetParentComponent().
|
overridevirtual |
Get access to subcomponent using its ID.
Implements icomp::ICompositeComponent.
Definition at line 100 of file TSimComponentsFactory.h.
|
overridevirtual |
Get access to context of subcomponent using its ID.
Please note, that this does'n create component instance.
Implements icomp::ICompositeComponent.
Definition at line 107 of file TSimComponentsFactory.h.
|
overridevirtual |
Called if subcomponent is removed from memory.
| subcomponentPtr | pointer to component beeing removed. It cannot be NULL. |
Implements icomp::ICompositeComponent.
Definition at line 126 of file TSimComponentsFactory.h.
|
inline |
Definition at line 29 of file TSimComponentsFactory.h.
|
overridevirtual |
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. |
Implements icomp::IComponent.
Definition at line 156 of file TSimComponentsFactory.h.