9 #ifndef FCF_DEVMGR_COMMON_DEVICEMAKER_HPP
10 #define FCF_DEVMGR_COMMON_DEVICEMAKER_HPP
53 virtual std::shared_ptr<IDevice>
Create(
const std::string& filename,
54 const std::string& name,
58 return std::make_shared<T>(filename, name, data_ctx);
Definition: dataContext.hpp:90
void RegisterMaker(const std::string &key, IDeviceMaker *maker)
Register device maker.
Definition: deviceFactory.cpp:38
static DeviceFactory & Instance()
Get instance of singleton.
Definition: deviceFactory.cpp:30
Definition: deviceMaker.hpp:29
DeviceMaker(const std::string &key)
DeviceMaker constructor.
Definition: deviceMaker.hpp:41
virtual std::shared_ptr< IDevice > Create(const std::string &filename, const std::string &name, DataContext &data_ctx) const
Create an instance of a device.
Definition: deviceMaker.hpp:53
Definition: iDeviceMaker.hpp:27
DeviceFactory class header file.
Config class header file.
Definition: actionMgr.cpp:29