DPsim
Loading...
Searching...
No Matches
Factory< BaseClass > Class Template Reference

Public Member Functions

std::vector< std::string > getItems ()
 
std::shared_ptr< BaseClass > create (std::string type, const std::string &name, CPS::Logger::Level logLevel=CPS::Logger::Level::debug)
 
void registerExciter (const std::string &type, Creator< BaseClass > *Fn)
 

Static Public Member Functions

static Factoryget ()
 

Detailed Description

template<class BaseClass>
class Factory< BaseClass >

Definition at line 33 of file Factory.h.

Member Function Documentation

◆ create()

template<class BaseClass>
std::shared_ptr< BaseClass > Factory< BaseClass >::create ( std::string type,
const std::string & name,
CPS::Logger::Level logLevel = CPS::Logger::Level::debug )
inline

Definition at line 51 of file Factory.h.

◆ get()

template<class BaseClass>
static Factory & Factory< BaseClass >::get ( )
inlinestatic

Definition at line 35 of file Factory.h.

◆ getItems()

template<class BaseClass>
std::vector< std::string > Factory< BaseClass >::getItems ( )
inline

Definition at line 40 of file Factory.h.

◆ registerExciter()

template<class BaseClass>
void Factory< BaseClass >::registerExciter ( const std::string & type,
Creator< BaseClass > * Fn )
inline

Definition at line 61 of file Factory.h.


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