template<class FactoryType, typename CreatedType>
class ot::FactoryRegistrarTemplate< FactoryType, CreatedType >
The FactoryRegistrarTemplate may be used to register a constructor at the factory.
- Note
- Note that the factory used to register at must have a public static instance method which returns a reference to the factory instance.
- Template Parameters
-
KeyType | The type of the key used to store and later acces the constructor. |
FactoryType | The factory that is used to register. |
CreatedType | The type of the created instance. |