![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
Manager for objects. More...
#include <common/AbstractFactoryPattern/ObjectManager.h>
Public Member Functions | |
| virtual | ~ObjectManager () |
| ObjectManager destructor. | |
| virtual std::shared_ptr< Object > | getObject (const std::string &id) |
| If object doesn't exists, call the create method. | |
Protected Member Functions | |
| virtual std::shared_ptr< Object > | createObject (const std::string &id)=0 |
| create the required object. | |
Manager for objects.
The manager create object when necessary, store them, avoiding to create same object twice.
Manager for Objects
| Objects | to manage |
Definition at line 29 of file ObjectManager.h.
|
virtual |
ObjectManager destructor.
Definition at line 65 of file ObjectManager.h.
|
protectedpure virtual |
create the required object.
| id | Id of the object to return |
| InvalidConfiguration | if failed to create object from given configuration |
Implemented in Lima::InitializableObjectManager< Object, InitializationParameters >.
|
virtual |
If object doesn't exists, call the create method.
get object of the given id
| id | Id of the object to return |
| InvalidConfiguration | if failed to create object from given configuration |
Definition at line 78 of file ObjectManager.h.