PandA-2024.02
|
Generic factory class implementation with self-registering derived classes. More...
Go to the source code of this file.
Data Structures | |
class | Factory< Base, Args > |
struct | Factory< Base, Args >::Registrar< T > |
class | Factory< Base, Args >::Key |
Generic factory class implementation with self-registering derived classes.
Base class of the factory should inherit from Factory and specify common instanciation arguments, while derived classes should inherit from Base::Registrar to be automatically registered in the factory internal registry. Finally, derived classes can be instantiated through the Create method.
Definition in file Factory.hpp.