![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <common/AbstractFactoryPattern/MainFactory.h>
Public Member Functions | |
| const std::shared_ptr< Factory > | getFactory (const std::string &classId) const |
| create an Object using the appropriate registered factory. | |
| std::shared_ptr< Factory > | getFactory (const std::string &classId) |
| create an Object using the appropriate registered factory. | |
| void | registerFactory (const std::string &classId, Factory *fact) |
| register a factory with an id | |
| std::deque< std::string > | getRegisteredFactories () const |
| show registered classId | |
| virtual | ~MainFactory () |
Static Public Member Functions | |
| static const MainFactory< Factory > & | single () |
| const singleton accessor | |
| static MainFactory< Factory > & | changeable () |
| singleton accessor | |
| static void | cleanup () |
| destroy factory and all registered factories | |
Definition at line 36 of file MainFactory.h.
|
virtual |
Definition at line 148 of file MainFactory.h.
|
static |
singleton accessor
Definition at line 128 of file MainFactory.h.
|
static |
destroy factory and all registered factories
Definition at line 143 of file MainFactory.h.
| std::shared_ptr< Factory > Lima::MainFactory< Factory >::getFactory | ( | const std::string & | classId | ) |
create an Object using the appropriate registered factory.
| unitConfiguration | IN : object configuration parameters |
| InvalidConfiguration | if 'class' parameter does not exist or \ if no appropriate factory is available |
| UndefinedMethod | if corresponding create method is not defined |
Use the 'class' parameter of unitConfiguration to select the factory to which delegate the creation of the object.
Definition at line 176 of file MainFactory.h.
| const std::shared_ptr< Factory > Lima::MainFactory< Factory >::getFactory | ( | const std::string & | classId | ) | const |
create an Object using the appropriate registered factory.
| unitConfiguration | IN : object configuration parameters |
| InvalidConfiguration | if 'class' parameter does not exist or \ if no appropriate factory is available |
| UndefinedMethod | if corresponding create method is not defined |
Use the 'class' parameter of unitConfiguration to select the factory to which delegate the creation of the object.
Definition at line 153 of file MainFactory.h.
| std::deque< std::string > Lima::MainFactory< Factory >::getRegisteredFactories | ( | ) | const |
show registered classId
Definition at line 216 of file MainFactory.h.
| void Lima::MainFactory< Factory >::registerFactory | ( | const std::string & | classId, |
| Factory * | fact | ||
| ) |
register a factory with an id
| classId | IN : classId for the factory |
| fact | IN : factory to register |
| InvalidConfiguration | if already a factory for this classId |
Definition at line 199 of file MainFactory.h.
|
static |
const singleton accessor
Definition at line 114 of file MainFactory.h.