10template <
typename T,
typename... Arg>
17 static std::unique_ptr<base_hardware>
20 std::unique_ptr<base_hardware> h{
nullptr};
23 (Arg::c_name() == device_name
24 && (h = std::make_unique<hardware<Arg, T>>(
controller)
27 if (h.get()) h->setup();
Main class to inherit from. Acts ast the root of the widget tree, and provides generic access to the ...
Definition controller.hpp:18
Instantiate a hardware object specialised with a specific device.
Definition hardware_factory.hpp:12
static std::unique_ptr< base_hardware > get(std::string_view device_name, T *controller)
Retrieves an instance of hardware specialised with the device who's c_name matches the device_name ar...
Definition hardware_factory.hpp:18