Belle II Software light-2406-ragdoll
|
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. | |
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. | |
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. | |
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 |
Definition at line 497 of file Module.cc.
|
inlinevirtual |
|
inline |
Abstract method which creates a new module and returns a shared pointer to it.
Instances of modules can only be created by this method.
Definition at line 618 of file Module.h.
|
inline |
|
protected |
|
protected |