|
ifw
0.0.1-dev
|
Device Configuration class. More...
#include <deviceConfig.hpp>
Public Member Functions | |
| DeviceConfig (const std::string &filename, const std::string &name) | |
| DeviceConfig constructor. More... | |
| virtual | ~DeviceConfig () |
| DeviceConfig destructor. More... | |
| virtual bool | Init () |
| Initialises a device. More... | |
| std::string | GetIdentifier () |
| std::string | GetPrefix () |
| std::string | GetAddress () |
| std::string | GetSimAddress () |
| std::string | GetFitsPrefix () |
| Get Fits Prefix. More... | |
| std::string | GetType () |
| int | GetNamespace () |
| std::string | GetAlias () |
| std::string | GetName () |
| std::string | GetNodeId (const std::string &attrib) |
| Get node id. More... | |
| std::string | GetProcId (const std::string &attrib) |
| Get procedure id. More... | |
| std::string | GetObjId () |
| Get object id. More... | |
| virtual void | GetConfigList (std::vector< std::string > &cfg_list, std::string prefix) |
| Get configuration list. More... | |
| std::string | GetCfgFile () |
| GetCfgFile. More... | |
| virtual void | SetSimulateFlag (bool flag) |
| Set simulation flag. More... | |
| virtual void | SetIgnoreFlag (bool flag) |
| Set ignore flag. More... | |
| virtual bool | GetIgnored () |
| Get ignored flag. More... | |
| virtual bool | GetSimulated () |
| Get simulated flag. More... | |
| DeviceConfig (const std::string &filename, const std::string &name) | |
| DeviceConfig constructor. More... | |
| virtual | ~DeviceConfig () |
| DeviceConfig destructor. More... | |
| virtual bool | Init () |
| Initialises a device. More... | |
| std::string | GetIdentifier () |
| std::string | GetPrefix () |
| std::string | GetAddress () |
| std::string | GetSimAddress () |
| std::string | GetFitsPrefix () |
| Get Fits Prefix. More... | |
| std::string | GetType () |
| int | GetNamespace () |
| std::string | GetAlias () |
| std::string | GetName () |
| std::string | GetNodeId (const std::string &attrib) |
| Get node id. More... | |
| std::string | GetProcId (const std::string &attrib) |
| Get procedure id. More... | |
| std::string | GetObjId () |
| Get object id. More... | |
| virtual void | GetConfigList (std::vector< std::string > &cfg_list, std::string prefix) |
| Get configuration list. More... | |
| std::string | GetCfgFile () |
| GetCfgFile. More... | |
| virtual void | SetSimulateFlag (bool flag) |
| Set simulation flag. More... | |
| virtual void | SetIgnoreFlag (bool flag) |
| Set ignore flag. More... | |
| virtual bool | GetIgnored () |
| Get ignored flag. More... | |
| virtual bool | GetSimulated () |
| Get simulated flag. More... | |
| DeviceConfig (const std::string &filename, const std::string &name) | |
| DeviceConfig constructor. More... | |
| virtual | ~DeviceConfig () |
| DeviceConfig destructor. More... | |
| virtual bool | Init () |
| Initialises a device. More... | |
| std::string | GetIdentifier () |
| std::string | GetPrefix () |
| std::string | GetAddress () |
| std::string | GetSimAddress () |
| std::string | GetFitsPrefix () |
| Get Fits Prefix. More... | |
| std::string | GetType () |
| int | GetNamespace () |
| std::string | GetAlias () |
| std::string | GetName () |
| std::string | GetNodeId (const std::string &attrib) |
| Get node id. More... | |
| std::string | GetProcId (const std::string &attrib) |
| Get procedure id. More... | |
| std::string | GetObjId () |
| Get object id. More... | |
| virtual void | GetConfigList (std::vector< std::string > &cfg_list, std::string prefix) |
| Get configuration list. More... | |
| std::string | GetCfgFile () |
| GetCfgFile. More... | |
| virtual void | SetSimulateFlag (bool flag) |
| Set simulation flag. More... | |
| virtual void | SetIgnoreFlag (bool flag) |
| Set ignore flag. More... | |
| virtual bool | GetIgnored () |
| Get ignored flag. More... | |
| virtual bool | GetSimulated () |
| Get simulated flag. More... | |
Public Member Functions inherited from devmgr::common::IDeviceConfig | |
| virtual void | ReadConfig ()=0 |
| Read the configuration. More... | |
| virtual void | GetConfig (fcf::common::VectorVariant ¶ms)=0 |
| Obtain the list of configuration parameters. More... | |
| virtual std::string | GetMapFile ()=0 |
| virtual void | ReadConfig ()=0 |
| Read the configuration. More... | |
| virtual void | GetConfig (fcf::common::VectorVariant ¶ms)=0 |
| Obtain the list of configuration parameters. More... | |
| virtual std::string | GetMapFile ()=0 |
| virtual void | ReadConfig ()=0 |
| Read the configuration. More... | |
| virtual void | GetConfig (fcf::common::VectorVariant ¶ms)=0 |
| Obtain the list of configuration parameters. More... | |
| virtual std::string | GetMapFile ()=0 |
Protected Attributes | |
| std::string | m_filename |
| filename of device configuration file More... | |
| std::string | m_name |
| device identifier More... | |
| YAML::Node | m_configNode |
| YAML node object for configuration file. More... | |
| std::string | m_identifier |
| Address space identifier. More... | |
| std::string | m_type |
| Device type. More... | |
| std::string | m_fits_prefix |
| bool | m_simulated |
| bool | m_ignored |
| std::string | m_lcs_prefix |
| std::string | m_address |
| std::string | m_sim_address |
| std::string | m_map_file |
| std::string | m_alias |
| int | m_lcs_namespace |
Device Configuration class.
This class manages the configuration of a device. It reads the configuration file and provides the methods to obtain the parameters used by the various classes.
| devmgr::common::DeviceConfig::DeviceConfig | ( | const std::string & | filename, |
| const std::string & | name | ||
| ) |
DeviceConfig constructor.
| [in] | filename | filename of the device configuration file. |
| [in] | name | Device identifier. |
|
virtual |
DeviceConfig destructor.
| devmgr::common::DeviceConfig::DeviceConfig | ( | const std::string & | filename, |
| const std::string & | name | ||
| ) |
DeviceConfig constructor.
| [in] | filename | filename of the device configuration file. |
| [in] | name | Device identifier. |
|
virtual |
DeviceConfig destructor.
| devmgr::common::DeviceConfig::DeviceConfig | ( | const std::string & | filename, |
| const std::string & | name | ||
| ) |
DeviceConfig constructor.
| [in] | filename | filename of the device configuration file. |
| [in] | name | Device identifier. |
|
virtual |
DeviceConfig destructor.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
| std::string devmgr::common::DeviceConfig::GetCfgFile | ( | ) |
GetCfgFile.
| std::string devmgr::common::DeviceConfig::GetCfgFile | ( | ) |
GetCfgFile.
| string devmgr::common::DeviceConfig::GetCfgFile | ( | ) |
GetCfgFile.
|
virtual |
Get configuration list.
| cfg_list | List of all configuration parameters. |
| prefix | Prefix to be added to the attributes names. |
This method returs the complete of configuration parameters handled by this class. This method is used to dump the list into the DB.
Reimplemented in devmgr::motor::MotorConfig, devmgr::motor::MotorConfig, devmgr::motor::MotorConfig, devmgr::sensor::SensorConfig, devmgr::sensor::SensorConfig, devmgr::sensor::SensorConfig, devmgr::lamp::LampConfig, devmgr::lamp::LampConfig, devmgr::lamp::LampConfig, devmgr::shutter::ShutterConfig, devmgr::shutter::ShutterConfig, and devmgr::shutter::ShutterConfig.
|
virtual |
Get configuration list.
| cfg_list | List of all configuration parameters. |
| prefix | Prefix to be added to the attributes names. |
This method returs the complete of configuration parameters handled by this class. This method is used to dump the list into the DB.
Reimplemented in devmgr::motor::MotorConfig, devmgr::motor::MotorConfig, devmgr::motor::MotorConfig, devmgr::sensor::SensorConfig, devmgr::sensor::SensorConfig, devmgr::sensor::SensorConfig, devmgr::lamp::LampConfig, devmgr::lamp::LampConfig, devmgr::lamp::LampConfig, devmgr::shutter::ShutterConfig, devmgr::shutter::ShutterConfig, and devmgr::shutter::ShutterConfig.
|
virtual |
Get configuration list.
| cfg_list | List of all configuration parameters. |
| prefix | Prefix to be added to the attributes names. |
This method returs the complete of configuration parameters handled by this class. This method is used to dump the list into the DB.
Reimplemented in devmgr::motor::MotorConfig, devmgr::motor::MotorConfig, devmgr::motor::MotorConfig, devmgr::sensor::SensorConfig, devmgr::sensor::SensorConfig, devmgr::sensor::SensorConfig, devmgr::lamp::LampConfig, devmgr::lamp::LampConfig, devmgr::lamp::LampConfig, devmgr::shutter::ShutterConfig, devmgr::shutter::ShutterConfig, and devmgr::shutter::ShutterConfig.
| std::string devmgr::common::DeviceConfig::GetFitsPrefix | ( | ) |
Get Fits Prefix.
| std::string devmgr::common::DeviceConfig::GetFitsPrefix | ( | ) |
Get Fits Prefix.
| string devmgr::common::DeviceConfig::GetFitsPrefix | ( | ) |
Get Fits Prefix.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get ignored flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get ignored flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get ignored flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get node id.
| [in] | attrib | attribute to build the node id |
The NodeId is composed by the following: <namespace>,<prefix>.<attribute>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get node id.
| [in] | attrib | attribute to build the node id |
The NodeId is composed by the following: <namespace>,<prefix>.<attribute>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get node id.
| [in] | attrib | attribute to build the node id |
The NodeId is composed by the following: <namespace>,<prefix>.<attribute>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get object id.
This method returns the address space prefix for executing RPC calls.
<namespace>,<prefix>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get object id.
This method returns the address space prefix for executing RPC calls.
<namespace>,<prefix>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get object id.
This method returns the address space prefix for executing RPC calls.
<namespace>,<prefix>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get procedure id.
| [in] | attrib | attribute to build the node id |
The procedure id is the NodeId for RPC calls and it is composed by the following:
<namespace>,<prefix>#<attribute>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get procedure id.
| [in] | attrib | attribute to build the node id |
The procedure id is the NodeId for RPC calls and it is composed by the following:
<namespace>,<prefix>#<attribute>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get procedure id.
| [in] | attrib | attribute to build the node id |
The procedure id is the NodeId for RPC calls and it is composed by the following:
<namespace>,<prefix>#<attribute>
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get simulated flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get simulated flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Get simulated flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
|
virtual |
Initialises a device.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Initialises a device.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Initialises a device.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Set ignore flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Set ignore flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Set ignore flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Set simulation flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Set simulation flag.
Implements devmgr::common::IDeviceConfig.
|
virtual |
Set simulation flag.
Implements devmgr::common::IDeviceConfig.
|
protected |
|
protected |
|
protected |
YAML node object for configuration file.
|
protected |
filename of device configuration file
|
protected |
|
protected |
Address space identifier.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
device identifier
|
protected |
|
protected |
|
protected |
Device type.
1.8.5