ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
devmgr::common::DeviceMaker< T > Class Template Reference

#include <deviceMaker.hpp>

Inheritance diagram for devmgr::common::DeviceMaker< T >:
devmgr::common::IDeviceMaker devmgr::common::IDeviceMaker devmgr::common::IDeviceMaker

Public Member Functions

 DeviceMaker (const std::string &key)
 DeviceMaker constructor. More...
 
virtual std::shared_ptr< IDeviceCreate (const std::string &filename, const std::string &name, DataContext &data_ctx) const
 Create an instance of a device. More...
 
 DeviceMaker (const std::string &key)
 DeviceMaker constructor. More...
 
virtual std::shared_ptr< IDeviceCreate (const std::string &filename, const std::string &name, DataContext &data_ctx) const
 Create an instance of a device. More...
 
 DeviceMaker (const std::string &key)
 DeviceMaker constructor. More...
 
virtual std::shared_ptr< IDeviceCreate (const std::string &filename, const std::string &name, DataContext &data_ctx) const
 Create an instance of a device. More...
 
- Public Member Functions inherited from devmgr::common::IDeviceMaker
virtual ~IDeviceMaker ()
 Default destructor. More...
 
virtual ~IDeviceMaker ()
 Default destructor. More...
 
virtual ~IDeviceMaker ()
 Default destructor. More...
 

Constructor & Destructor Documentation

template<typename T >
devmgr::common::DeviceMaker< T >::DeviceMaker ( const std::string &  key)
inlineexplicit

DeviceMaker constructor.

Parameters
[in]keykeyword to indentify a device in the factory

When created, the Device maker will automaticly register itself with the factory.

Note
you are discouraged from using DeviceMaker outside REGISTER_DEVICE macro
template<typename T >
devmgr::common::DeviceMaker< T >::DeviceMaker ( const std::string &  key)
inlineexplicit

DeviceMaker constructor.

Parameters
[in]keykeyword to indentify a device in the factory

When created, the Device maker will automaticly register itself with the factory.

Note
you are discouraged from using DeviceMaker outside REGISTER_DEVICE macro
template<typename T >
devmgr::common::DeviceMaker< T >::DeviceMaker ( const std::string &  key)
inlineexplicit

DeviceMaker constructor.

Parameters
[in]keykeyword to indentify a device in the factory

When created, the Device maker will automaticly register itself with the factory.

Note
you are discouraged from using DeviceMaker outside REGISTER_DEVICE macro

Member Function Documentation

template<typename T >
virtual std::shared_ptr<IDevice> devmgr::common::DeviceMaker< T >::Create ( const std::string &  filename,
const std::string &  name,
DataContext data_ctx 
) const
inlinevirtual

Create an instance of a device.

Parameters
[in]filenamefilename containing the device configuration
[in]namedevice id
[in,out]data_ctxreference to the device context object
Returns
shared pointer to the object instance created.

Implements devmgr::common::IDeviceMaker.

template<typename T >
virtual std::shared_ptr<IDevice> devmgr::common::DeviceMaker< T >::Create ( const std::string &  filename,
const std::string &  name,
DataContext data_ctx 
) const
inlinevirtual

Create an instance of a device.

Parameters
[in]filenamefilename containing the device configuration
[in]namedevice id
[in,out]data_ctxreference to the device context object
Returns
shared pointer to the object instance created.

Implements devmgr::common::IDeviceMaker.

template<typename T >
virtual std::shared_ptr<IDevice> devmgr::common::DeviceMaker< T >::Create ( const std::string &  filename,
const std::string &  name,
DataContext data_ctx 
) const
inlinevirtual

Create an instance of a device.

Parameters
[in]filenamefilename containing the device configuration
[in]namedevice id
[in,out]data_ctxreference to the device context object
Returns
shared pointer to the object instance created.

Implements devmgr::common::IDeviceMaker.


The documentation for this class was generated from the following files: