eVaf
|
Common interface for all the eVaf modules. More...
#include <Plugins/iplugin.h>
Public Member Functions | |
virtual void | done ()=0 |
Finalizes the module. More... | |
virtual bool | init (const QString &args)=0 |
Initializes the module that implements the iPlugin interface. More... | |
iPlugin () | |
Empty constructor. More... | |
virtual bool | isReady () const =0 |
Ready flag. More... | |
virtual | ~iPlugin () |
Empty virtual destructor. More... | |
Common interface for all the eVaf modules.
The iPlugin interface is the common interface implemented by all the eVaf modules.
|
inline |
|
inlinevirtual |
|
pure virtual |
Finalizes the module.
The plugin manager calls the done() function for every eVaf module during the finalization of the application. Modules implementing the iPlugin interface shall finalize and release all the resources in the done() function.
Implemented in eVaf::ScosTime::Module.
|
pure virtual |
Initializes the module that implements the iPlugin interface.
args | Arguments for the initialization |
The plugin manager calls the init() function for every eVaf module during the initialization of the application. Modules implementing the iPlugin interface shall allocate and initialize all the required resources in the init() function.
Modules can assume that the init() function is always called once after loading the module and creating the interface object. Every init() function call is followed by a done() function call during the finalization of the application. Modules can be initialized multiple times without destroying the interface object, but init() function calls are always followed by a done() function call.
When the init() function returns true, then the initialization of the module shall be completed and all the interfaces and other resources published by the module safe to use.
Implemented in eVaf::ScosTime::Module.
|
pure virtual |
Ready flag.
The ready flag indicates that the module is initialized and all the published interfaces and resources safe to use.
Implemented in eVaf::ScosTime::Module.