Registration Class for the object type: Also templated:
More...
#include <factory.h>
|
| Registrar (const std::string &name, BaseClass *(*creator)(), const std::string &base_type) |
| Public Constructor which is only used to register the new task type. More...
|
|
template<typename BaseClass>
class exotica::Registrar< BaseClass >
Registration Class for the object type: Also templated:
- Parameters
-
I | The Identifier type (typically string) |
BaseClass | The Base object type (required for the sake of the singleton factory) |
Definition at line 56 of file factory.h.
◆ Registrar()
template<typename BaseClass >
Public Constructor which is only used to register the new task type.
- Parameters
-
name | The name for the new class type |
creator | The creator function for the DERIVED class type but which returns a pointer to the base-class type! |
Definition at line 133 of file factory.h.
The documentation for this class was generated from the following file: