|
ifw-sup
2.1.0-pre1
|
#include <subsysFactory.hpp>
Classes | |
| struct | Registrar |
Static Public Member Functions | |
| template<class ... T> | |
| static std::unique_ptr< Base > | Create (const std::string &s, T &&... args) |
| create subsystem object instance More... | |
Public Attributes | |
| friend | Base |
This class implements a factory. It has been suggested by Nir Friedman www.nirfriedman.com/2018/04/29/unforgettable-factory/
The innovative solution from Nir is that you can register the class without macros.
|
inlinestatic |
create subsystem object instance
| s | name of the subsystem |
| args | arguments passed to the created instance |
| friend sup::syssup::common::Factory< Base, Args >::Base |