|
ifw
0.0.1-dev
|
#include <deviceFactory.hpp>
Public Member Functions | |
| void | RegisterMaker (const std::string &key, IDeviceMaker *maker) |
| Register device maker. More... | |
| void | DeregisterMaker (const std::string &key, IDeviceMaker *maker) |
| Deregister device maker. More... | |
| std::shared_ptr< IDevice > | Create (const std::string &filename, const std::string &name, DataContext &data_ctx) const |
| Creates a new device. More... | |
| void | RegisterMaker (const std::string &key, IDeviceMaker *maker) |
| Register device maker. More... | |
| void | DeregisterMaker (const std::string &key, IDeviceMaker *maker) |
| Deregister device maker. More... | |
| std::shared_ptr< IDevice > | Create (const std::string &filename, const std::string &name, DataContext &data_ctx) const |
| Creates a new device. More... | |
| void | RegisterMaker (const std::string &key, IDeviceMaker *maker) |
| Register device maker. More... | |
| void | DeregisterMaker (const std::string &key, IDeviceMaker *maker) |
| Deregister device maker. More... | |
| std::shared_ptr< IDevice > | Create (const std::string &filename, const std::string &name, DataContext &data_ctx) const |
| Creates a new device. More... | |
Static Public Member Functions | |
| static DeviceFactory & | Instance () |
| Get instance of singleton. More... | |
| static DeviceFactory & | Instance () |
| Get instance of singleton. More... | |
| static DeviceFactory & | Instance () |
| Get instance of singleton. More... | |
Abstract-Factory Pattern Implementation
| std::shared_ptr< IDevice > devmgr::common::DeviceFactory::Create | ( | const std::string & | filename, |
| const std::string & | name, | ||
| DataContext & | data_ctx | ||
| ) | const |
Creates a new device.
| [in] | filename | filename of device configuration |
| [in] | name | device id |
| [in] | data_ctx | reference to data object context |
| std::shared_ptr<IDevice> devmgr::common::DeviceFactory::Create | ( | const std::string & | filename, |
| const std::string & | name, | ||
| DataContext & | data_ctx | ||
| ) | const |
Creates a new device.
| [in] | filename | filename of device configuration |
| [in] | name | device id |
| [in] | data_ctx | reference to data object context |
| std::shared_ptr<IDevice> devmgr::common::DeviceFactory::Create | ( | const std::string & | filename, |
| const std::string & | name, | ||
| DataContext & | data_ctx | ||
| ) | const |
Creates a new device.
| [in] | filename | filename of device configuration |
| [in] | name | device id |
| [in] | data_ctx | reference to data object context |
| void devmgr::common::DeviceFactory::DeregisterMaker | ( | const std::string & | key, |
| IDeviceMaker * | maker | ||
| ) |
Deregister device maker.
| [in] | key | maker identifier |
| [in] | maker | pointer to maker object |
This method removes a device maker with a given key
| void devmgr::common::DeviceFactory::DeregisterMaker | ( | const std::string & | key, |
| IDeviceMaker * | maker | ||
| ) |
Deregister device maker.
| [in] | key | maker identifier |
| [in] | maker | pointer to maker object |
This method removes a device maker with a given key
| void devmgr::common::DeviceFactory::DeregisterMaker | ( | const std::string & | key, |
| IDeviceMaker * | maker | ||
| ) |
Deregister device maker.
| [in] | key | maker identifier |
| [in] | maker | pointer to maker object |
This method removes a device maker with a given key
|
static |
Get instance of singleton.
Factory is implemented as a Singleton
|
static |
Get instance of singleton.
Factory is implemented as a Singleton
|
static |
Get instance of singleton.
Factory is implemented as a Singleton
| void devmgr::common::DeviceFactory::RegisterMaker | ( | const std::string & | key, |
| IDeviceMaker * | maker | ||
| ) |
Register device maker.
| [in] | key | maker identifier |
| [in] | maker | pointer to maker object |
This method adds new device maker with given key
| void devmgr::common::DeviceFactory::RegisterMaker | ( | const std::string & | key, |
| IDeviceMaker * | maker | ||
| ) |
Register device maker.
| [in] | key | maker identifier |
| [in] | maker | pointer to maker object |
This method adds new device maker with given key
| void devmgr::common::DeviceFactory::RegisterMaker | ( | const std::string & | key, |
| IDeviceMaker * | maker | ||
| ) |
Register device maker.
| [in] | key | maker identifier |
| [in] | maker | pointer to maker object |
This method adds new device maker with given key
1.8.5