VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
VICI::FactoryFactory Class Reference

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 FactoryFactoryinstance ()
 Get a reference to the singleton object.
 

Detailed Description

Responsible for creating and supplying factories for the main modules.

Member Function Documentation

template<class T >
void VICI::FactoryFactory::getFactory ( Module  nm,
std::shared_ptr< T > &  f 
)
inline

Get a factory of the specified type.

Parameters
nmThe type of the required factory
fA 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.

Parameters
mSpecify the type of the factory.
fThe factory to return for the type.

The documentation for this class was generated from the following files: