8#ifndef FCF_DEVMGR_COMMON_DEVICEMAKER_HPP
9#define FCF_DEVMGR_COMMON_DEVICEMAKER_HPP
51 virtual std::shared_ptr<IDevice>
Create(
const std::string& filename,
52 const std::string& name,
56 return std::make_shared<T>(filename, name, data_ctx);
Definition dataContext.hpp:86
static DeviceFactory & Instance()
Get instance of singleton.
Definition deviceFactory.cpp:28
void RegisterMaker(const std::string &key, IDeviceMaker *maker)
Register device maker.
Definition deviceFactory.cpp:36
Definition deviceMaker.hpp:27
DeviceMaker(const std::string &key)
DeviceMaker constructor.
Definition deviceMaker.hpp:39
virtual std::shared_ptr< IDevice > Create(const std::string &filename, const std::string &name, DataContext &data_ctx) const override
Create an instance of a device.
Definition deviceMaker.hpp:51
Definition iDeviceMaker.hpp:26
ActionsEnable class source file.
Definition actionMgr.cpp:28