![]() |
Belle II Software
light-2303-iriomote
|
The base module proxy class is used to create new instances of a module. More...
#include <Module.h>

Public Member Functions | |
| ModuleProxyBase (std::string moduleType, std::string package) | |
| The constructor of the ModuleProxyBase class. More... | |
| virtual | ~ModuleProxyBase () |
| The destructor of the ModuleProxyBase class. | |
| ModulePtr | createModule () const |
| Abstract method which creates a new module and returns a shared pointer to it. More... | |
| const std::string & | getModuleName () const |
| Returns the module name of the module associated to this proxy. | |
Protected Member Functions | |
| virtual Module * | createInstance () const =0 |
| create a new instance of the module in question | |
Protected Attributes | |
| std::string | m_moduleType |
| The type name of the module. More... | |
| std::string | m_package |
| Package this module is found in (may be empty). | |
The base module proxy class is used to create new instances of a module.
By loading a shared library, which contains modules, the proxy class of each module is automatically registered to the global ModuleManager. If an instance of a module is required, its proxy class is responsible to create an instance of the module.
| ModuleProxyBase | ( | std::string | moduleType, |
| std::string | package | ||
| ) |
The constructor of the ModuleProxyBase class.
The constructor registers the proxy to the ModuleManager.
| moduleType | The type name of the module. |
| package | the package which contains the module |
|
inline |
|
protected |