![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/FactoryBase.h>
Abstract base class for all factories. More...
Abstract base class for all factories.
Public Member Functions | |
FactoryBase () | |
No license check is performed for the module instantiated with this constructor. | |
FactoryBase (std::string module, bool checkLicense=true) | |
std::string | moduleName () const |
Returns the module name of the factory. | |
Protected Member Functions | |
virtual | ~FactoryBase () |
Virtual destructor. | |
std::string | getComponentPath (const std::string &componentName) const |
Returns the path to the component referred to by name . | |
bool | isLicensed (const std::string &name) |
Return true if the license allows the use of the component referred to by name . | |
Static Protected Member Functions | |
static std::string | getComponentPath (const std::string &moduleName, const std::string &componentName) |
Returns the path to the component referred to by name . | |
static bool | isLicensed (const std::string &moduleName, const std::string &name) |
Return true if the license allows the use of the component referred to by name . | |
Protected Attributes | |
std::string | m_factoryModule |
bool | m_checkLicense |
FactoryBase | ( | ) |
No license check is performed for the module instantiated with this constructor.
|
explicit |
module | The module name of the factory. |
checkLicense | If true, the license is checked for the module. |
|
protected |
Returns the path to the component referred to by name
.
e.g. Reg.Sim.name
|
staticprotected |
Returns the path to the component referred to by name
.
e.g. moduleName.name