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);
64 #endif // FCF_DEVMGR_COMMON_DEVICEMAKER_HPP
static DeviceFactory & Instance()
Get instance of singleton.
Definition: deviceFactory.cpp:23
Config class header file.
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
void RegisterMaker(const std::string &key, IDeviceMaker *maker)
Register device maker.
Definition: deviceFactory.cpp:30
DeviceFactory class header file.
Definition: dataContext.hpp:81
Definition: deviceMaker.hpp:29
Definition: iDeviceMaker.hpp:26
DeviceMaker(const std::string &key)
DeviceMaker constructor.
Definition: deviceMaker.hpp:41