Public Types | Protected Member Functions | List of all members
ibase::CModelBinderComp Class Reference

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

#include <CModelBinderComp.h>

Inheritance diagram for ibase::CModelBinderComp:
icomp::CComponentBase icomp::IComponent istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 

Protected Member Functions

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

Additional Inherited Members

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

Member Typedef Documentation

Definition at line 29 of file CModelBinderComp.h.

Member Function Documentation

virtual void ibase::CModelBinderComp::OnComponentCreated ( )
protectedvirtual

Reimplemented from icomp::CComponentBase.

virtual void ibase::CModelBinderComp::OnComponentDestroyed ( )
protectedvirtual

Reimplemented from icomp::CComponentBase.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy