IModuleBase Class Reference
Abstract base class of all opals modules. More...
#include "IModuleBase.hpp"
Inheritance diagram for IModuleBase:Public Member Functions | |
| virtual | ~IModuleBase () |
| Make sure to delete instances after use with Delete() | |
| virtual void | Delete ()=0 |
| Destroy modules allocated on the heap. | |
| virtual ParamList | run (bool reset=false)=0 |
| virtual void | reset ()=0 |
| Resets the module to the state after construction. | |
Access global options: present in all modules. | |
| virtual opts::glob::Options & | globals ()=0 |
| virtual const opts::glob::Options & | globals () const =0 |
Access common options: present in all modules. | |
}@ | |
| virtual opts::comm::Options & | commons ()=0 |
| virtual const opts::comm::Options & | commons () const =0 |
Access the base type of module-specific options. | |
}@ | |
| virtual opts::IBase & | optsBase ()=0 |
| virtual const opts::IBase & | optsBase () const =0 |
| virtual opals::String | name () const =0 |
| }@ | |
| virtual opals::String | version () const =0 |
| Returns the module version. | |
| virtual opals::String | special_build () const =0 |
| Returns the special build version. | |
| virtual opals::String | compilation_date_time () const =0 |
| Returns a string representing the compilation date and time. | |
| virtual void | mapParams (const ParamList ¶mList)=0 |
| Sets module parameters from paramList according to parameter "paramMapping". | |
| virtual void | set_controlObject (IControlObject &obj)=0 |
| Sets control object for retrieving status information during processing. | |
| virtual void | unset_controlObject ()=0 |
| remove control object from the message queue | |
Detailed Description
Abstract base class of all opals modules.
Member Function Documentation
|
pure virtual |
Destroy modules allocated on the heap.
Make sure to delete instances after use in order to avoid memory leaks. This is done automatically when using std::shared_ptr in combination with opals::ModuleDeleter to manage memory, e.g.:
std::shared_ptr< opals::IModuleBase > module( opals::IImport::New(), opals::ModuleDeleter() );
That way, Delete() is called automatically when the std::shared_ptr goes out of scope.
|
pure virtual |
}@
Returns the module name.
