ICF 3.0.5.47
Technical documentation of ICF Libraries
ibase::CModelBinderComp Class Reference

Implementation of a simple model-observer binder component. More...

#include <CModelBinderComp.h>

Inheritance diagram for ibase::CModelBinderComp:
Collaboration diagram for ibase::CModelBinderComp:

Public Types

typedef icomp::CComponentBase BaseClass
 

Protected Member Functions

void OnComponentCreated () override
 
void OnComponentDestroyed () override
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active.
 
virtual const IRealComponentStaticInfoGetComponentStaticInfo () const =0
 Get access to static info of this component.
 

Additional Inherited Members

- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context.
 
 CComponentBase (const CComponentBase &)=delete
 
CComponentBaseoperator= (const CComponentBase &)=delete
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component.
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface.
 
virtual const IComponentContextGetComponentContext () const
 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)
 Set component context of this component.
 
- Public Member Functions inherited from icomp::IComponent
- Static Protected Member Functions inherited from icomp::CComponentBase
static const IRealComponentStaticInfoInitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 

Detailed Description

Implementation of a simple model-observer binder component.

This component is used for direct binding of a model component, defined by m_modelCompPtr reference, to a list of observers defined m_observersCompPtr multi-reference.

Note
Please note, that this component doesn't provide any public interfaces. The data object will be attached to the observers during the initialization phase of the component. To enforce the instatiation of this component, you should activate 'Automatically create instance' flag in the Compositor.

Definition at line 30 of file CModelBinderComp.h.

Member Typedef Documentation

◆ BaseClass

Member Function Documentation

◆ OnComponentCreated()

void ibase::CModelBinderComp::OnComponentCreated ( )
overrideprotectedvirtual

Reimplemented from icomp::CComponentBase.

◆ OnComponentDestroyed()

void ibase::CModelBinderComp::OnComponentDestroyed ( )
overrideprotectedvirtual

Reimplemented from icomp::CComponentBase.


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

© Witold Gantzke and Kirill Lepskiy