VICI
0.11.815
Visual Chart Interpreter
|
Responsible for creating and supplying factories for the main modules. More...
#include <vici/vici.h>
Public Member Functions | |
template<class T > | |
void | getFactory (Module nm, std::shared_ptr< T > &f) |
Get a factory of the specified type. More... | |
void | registerFactory (Module m, FactoryPtr f) |
Register a factory. More... | |
Static Public Member Functions | |
static FactoryFactory & | instance () |
Get a reference to the singleton object. | |
Responsible for creating and supplying factories for the main modules.
|
inline |
Get a factory of the specified type.
nm | The type of the required factory |
f | A shared pointer for the factory. |
void FactoryFactory::registerFactory | ( | Module | m, |
FactoryPtr | f | ||
) |
Register a factory.
This is used by test harnesses to supply alternate test version of modules.
m | Specify the type of the factory. |
f | The factory to return for the type. |