Runtime factory that creates registered objects by type name.
More...
#include <Utils/CActivator.h>
Runtime factory that creates registered objects by type name.
◆ createInstance()
Create an instance of a registered type.
- Parameters
-
| type | Type name used during registration. |
- Returns
- Newly allocated object, or null if the type is not registered.
◆ registerType()
Register a type name and constructor callback.
- Parameters
-
| type | Type name used as the factory key. |
| func | Constructor callback. |
- Returns
- True if the type was registered, false if the name already exists.
The documentation for this class was generated from the following file: