template<typename BASE_T>
class makVre::DtFactory< BASE_T >
This template provides a factory for creating objects that inherit from a common base class. It maintains a map of creator objects indexed by name.
- Template Parameters
-
| BASE_T | The base type that all created objects will inherit from |
template<typename BASE_T>
template<typename CREATE_T>
Registers a creator for a specific type.
Adds a creator to the factory, allowing objects of that type to be created by name. If a creator with the same name already exists, it will be replaced, but a warning will only be logged if the new creator is of a different type.
- Template Parameters
-
| CREATE_T | The concrete type to register, must inherit from BASE_T |
- Parameters
-
| name | The name to register the creator under. If empty, the typeid name is used. |