9 #ifndef FCF_DEVMGR_COMMON_DEVICEFACTORY_HPP
10 #define FCF_DEVMGR_COMMON_DEVICEFACTORY_HPP
17 #include <utils/bat/logger.hpp>
67 std::shared_ptr<IDevice>
Create(
const std::string& filename,
68 const std::string& name,
69 const std::string&
type,
82 std::map<std::string, IDeviceMaker* > m_makers;
83 log4cplus::Logger m_logger;
Definition: dataContext.hpp:90
Definition: deviceFactory.hpp:28
void RegisterMaker(const std::string &key, IDeviceMaker *maker)
Register device maker.
Definition: deviceFactory.cpp:38
void DeregisterMaker(const std::string &key, IDeviceMaker *maker)
Deregister device maker.
Definition: deviceFactory.cpp:50
std::shared_ptr< IDevice > Create(const std::string &filename, const std::string &name, const std::string &type, DataContext &data_ctx) const
Creates a new device.
Definition: deviceFactory.cpp:59
static DeviceFactory & Instance()
Get instance of singleton.
Definition: deviceFactory.cpp:30
Definition: iDeviceMaker.hpp:27
Config class header file.
type
Definition: fcfLampGui.py:20
Definition: actionMgr.cpp:29