![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Singleton application component. More...
#include <CSingletonDocApplicationComp.h>
Public Types | |
typedef icomp::CComponentBase | BaseClass |
typedef imod::TSingleModelObserverBase< ibase::IRuntimeStatusProvider > | BaseClass2 |
Public Member Functions | |
CSingletonDocApplicationComp () | |
bool | InitializeApplication (int argc, char **argv) override |
Initialize the application object. | |
int | Execute (int argc, char **argv) override |
Start execution loop of the application. | |
QString | GetHelpText () const override |
Get information about the possible command line arguments of this application. | |
QStringList | GetApplicationArguments () const override |
Get the command line arguments of this application. | |
![]() | |
CComponentBase () | |
Create component and assign it to specific context. | |
CComponentBase (const CComponentBase &)=delete | |
CComponentBase & | operator= (const CComponentBase &)=delete |
virtual const ICompositeComponent * | GetParentComponent (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 IComponentContext * | GetComponentContext () 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. | |
![]() | |
![]() |
Protected Member Functions | |
void | OnUpdate (const istd::IChangeable::ChangeSet &changeSet) override |
Called on update of observed model. | |
void | OnComponentCreated () override |
void | OnComponentDestroyed () override |
![]() | |
bool | IsComponentActive () const |
Check if component is active. | |
virtual const IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
Get access to static info of this component. | |
![]() | |
virtual ibase::IRuntimeStatusProvider * | CastFromModel (imod::IModel *modelPtr) const |
TSingleModelObserverBase () | |
ibase::IRuntimeStatusProvider * | GetObservedObject () const |
Get instance of observed object. | |
ibase::IRuntimeStatusProvider * | GetObjectPtr () const |
Get instance of observed object. | |
bool | AttachOrSetObject (ibase::IRuntimeStatusProvider *objectPtr) |
Attach to model of object or set object pointer, if no connection is possible. | |
bool | OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override |
This call back function will be called, if an observable object is about to be attached. | |
bool | OnModelDetached (imod::IModel *modelPtr) override |
This call back function will be called, if an observable object is about to be detached. | |
![]() | |
void | SetModelPtr (imod::IModel *modelPtr) |
Set internal model pointer to specified value. | |
CSingleModelObserverBase () | |
virtual | ~CSingleModelObserverBase () |
imod::IModel * | GetObservedModel () const |
Get access to observed model. | |
imod::IModel * | GetModelPtr () const |
Get access to observed model. | |
void | EnsureModelDetached () |
Make sure this observer is detached. | |
void | SetObservedIds (const istd::IChangeable::ChangeSet &changeMask) |
Set list of ID's beeing observed. | |
bool | IsModelAttached (const imod::IModel *modelPtr=nullptr) const override |
Check if specified model is attached. | |
void | BeforeModelChange (imod::IModel *modelPtr) override |
This function will be called before update of the observer contents occures. | |
void | AfterModelChange (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override |
This function will be called after update of the observer contents occures. | |
![]() | |
![]() |
Additional Inherited Members | |
![]() | |
typedef CSingleModelObserverBase | BaseClass |
typedef ibase::IRuntimeStatusProvider | ModelType |
![]() | |
typedef imod::IModel | ModelType |
![]() | |
static const IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
static QByteArray | GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
Singleton application component.
This component wraps a "real" application component implementation and allows only a single execution of the application instance.
Definition at line 33 of file CSingletonDocApplicationComp.h.
Definition at line 41 of file CSingletonDocApplicationComp.h.
imod::TSingleModelObserverBase<ibase::IRuntimeStatusProvider> idocgui::CSingletonDocApplicationComp::BaseClass2 |
Definition at line 42 of file CSingletonDocApplicationComp.h.
idocgui::CSingletonDocApplicationComp::CSingletonDocApplicationComp | ( | ) |
|
overridevirtual |
Start execution loop of the application.
Implements ibase::IApplication.
|
overridevirtual |
Get the command line arguments of this application.
Implements ibase::IApplication.
|
overridevirtual |
Get information about the possible command line arguments of this application.
Implements ibase::IApplication.
|
overridevirtual |
Initialize the application object.
Implements ibase::IApplication.
|
overrideprotectedvirtual |
Reimplemented from icomp::CComponentBase.
|
overrideprotectedvirtual |
Reimplemented from icomp::CComponentBase.
|
overrideprotectedvirtual |
Called on update of observed model.
This method is designed to be overload by derrived classes.
Reimplemented from imod::CSingleModelObserverBase.
© Witold Gantzke and Kirill Lepskiy