9 #ifndef FCF_DEVMGR_COMMON_DEVICEFACTORY_HPP
10 #define FCF_DEVMGR_COMMON_DEVICEFACTORY_HPP
66 std::shared_ptr<IDevice>
Create(
const std::string& filename,
67 const std::string& name,
80 std::map<std::string, IDeviceMaker* > m_makers;
89 #endif //FCF_DEVMGR_COMMON_DEVICE_FACTORY_HPP
static DeviceFactory & Instance()
Get instance of singleton.
Definition: deviceFactory.cpp:23
Config class header file.
Definition: deviceFactory.hpp:27
void RegisterMaker(const std::string &key, IDeviceMaker *maker)
Register device maker.
Definition: deviceFactory.cpp:30
std::shared_ptr< IDevice > Create(const std::string &filename, const std::string &name, DataContext &data_ctx) const
Creates a new device.
Definition: deviceFactory.cpp:51
Definition: dataContext.hpp:81
Definition: iDeviceMaker.hpp:26
void DeregisterMaker(const std::string &key, IDeviceMaker *maker)
Deregister device maker.
Definition: deviceFactory.cpp:42