![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <common/AbstractFactoryPattern/SimpleFactory.h>
Public Member Functions | |
| SimpleFactory (const std::string &id) | |
| Constructor. | |
| virtual | ~SimpleFactory () |
| virtual std::shared_ptr< Base > | create (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, typename Base::Manager *manager) const override |
| create an object of class Object. | |
Public Member Functions inherited from Lima::InitializableObjectFactory< Base > | |
| InitializableObjectFactory (const std::string &id) | |
| virtual std::shared_ptr< Base > | create (Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, typename Object::Manager *manager) const=0 |
| virtual | ~InitializableObjectFactory () |
Public Member Functions inherited from Lima::RegistrableFactory< Factory > | |
| virtual | ~RegistrableFactory ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from Lima::RegistrableFactory< Factory > | |
| static std::shared_ptr< Factory > | getFactory (const std::string &id) |
| get the factory corresponding to the given id | |
| static std::deque< std::string > | getRegisteredFactories () |
| get the list of factories registered | |
Protected Member Functions inherited from Lima::RegistrableFactory< Factory > | |
| RegistrableFactory (const std::string &id) | |
| Constructor is protected, and must be redefined by subclass. | |
Definition at line 27 of file SimpleFactory.h.
| Lima::SimpleFactory< Base, Object >::SimpleFactory | ( | const std::string & | id | ) |
Constructor.
| id | IN : classId used to register to the main factory |
Definition at line 54 of file SimpleFactory.h.
|
inlinevirtual |
Definition at line 37 of file SimpleFactory.h.
|
overridevirtual |
create an object of class Object.
| unitConfiguration | IN : object configuration parameters |
| InvalidConfiguration | if 'class' parameter does not exist or \ if no appropriate factory is available Constraint : Object must be an InitializableObject |
Definition at line 59 of file SimpleFactory.h.