Defines a Factory that automatically register to a MainFactory singleton.
More...
#include <common/AbstractFactoryPattern/RegistrableFactory.h>
|
| 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
|
| |
|
| | RegistrableFactory (const std::string &id) |
| | Constructor is protected, and must be redefined by subclass.
|
| |
template<typename Factory>
class Lima::RegistrableFactory< Factory >
Defines a Factory that automatically register to a MainFactory singleton.
Defines a template for a factory that automatically register to a MainFactory. The registered factories can be retreived by the static method getFactory
- Author
- Benoit Mathieu mathi.nosp@m.eub@.nosp@m.zoe.c.nosp@m.ea.f.nosp@m.r
- Parameters
-
| Factory | is the kind of Factory to register |
Definition at line 31 of file RegistrableFactory.h.
◆ ~RegistrableFactory()
template<typename Factory >
◆ RegistrableFactory()
template<typename Factory >
Constructor is protected, and must be redefined by subclass.
- Parameters
-
Definition at line 60 of file RegistrableFactory.h.
◆ getFactory()
template<typename Factory >
get the factory corresponding to the given id
- Parameters
-
- Returns
- Factory*
Definition at line 67 of file RegistrableFactory.h.
◆ getRegisteredFactories()
template<typename Factory >
get the list of factories registered
- Returns
- deque of all ids of registered factories
Definition at line 80 of file RegistrableFactory.h.
The documentation for this class was generated from the following file: