|
ifw
0.0.1-dev
|
sensor Configuration class More...
#include <sensorConfig.hpp>
Public Member Functions | |
| SensorConfig (const std::string filename, const std::string name) | |
| DeviceConfig constructor. More... | |
| virtual | ~SensorConfig () |
| DeviceConfig destructor. More... | |
| virtual void | ReadConfig () |
| Read the configuration. More... | |
| virtual void | GetConfig (fcf::common::VectorVariant ¶ms) |
| Obtain the list of configuration parameters. More... | |
| virtual std::string | GetMapFile () |
| virtual void | GetConfigList (std::vector< std::string > &cfg_list, std::string prefix) |
| Get configuration list. More... | |
| virtual void | GetChannelList (std::vector< std::string > &channel_list) |
| Get channel list. More... | |
| SensorConfig (const std::string filename, const std::string name) | |
| DeviceConfig constructor. More... | |
| virtual | ~SensorConfig () |
| DeviceConfig destructor. More... | |
| virtual void | ReadConfig () |
| Read the configuration. More... | |
| virtual void | GetConfig (fcf::common::VectorVariant ¶ms) |
| Obtain the list of configuration parameters. More... | |
| virtual std::string | GetMapFile () |
| virtual void | GetConfigList (std::vector< std::string > &cfg_list, std::string prefix) |
| Get configuration list. More... | |
| virtual void | GetChannelList (std::vector< std::string > &channel_list) |
| Get channel list. More... | |
| SensorConfig (const std::string filename, const std::string name) | |
| DeviceConfig constructor. More... | |
| virtual | ~SensorConfig () |
| DeviceConfig destructor. More... | |
| virtual void | ReadConfig () |
| Read the configuration. More... | |
| virtual void | GetConfig (fcf::common::VectorVariant ¶ms) |
| Obtain the list of configuration parameters. More... | |
| virtual std::string | GetMapFile () |
| virtual void | GetConfigList (std::vector< std::string > &cfg_list, std::string prefix) |
| Get configuration list. More... | |
| virtual void | GetChannelList (std::vector< std::string > &channel_list) |
| Get channel list. More... | |
Public Member Functions inherited from devmgr::common::DeviceConfig | |
| 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... | |
| 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... | |
| 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... | |
| 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... | |
Friends | |
| class | Sensor |
| class | SensorLcsIf |
Additional Inherited Members | |
Protected Attributes inherited from devmgr::common::DeviceConfig | |
| 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 |
sensor Configuration class
This class manages the configuration of a sensor. It reads the configuration file and provides the methods to obtain the parameters used by the auxiliary classes.
DeviceConfig constructor.
| [in] | filename | filename of the device configuration file. |
| [in] | name | Device identifier. |
|
virtual |
DeviceConfig destructor.
DeviceConfig constructor.
| [in] | filename | filename of the device configuration file. |
| [in] | name | Device identifier. |
|
virtual |
DeviceConfig destructor.
DeviceConfig constructor.
| [in] | filename | filename of the device configuration file. |
| [in] | name | Device identifier. |
|
virtual |
DeviceConfig destructor.
|
virtual |
Get channel list.
| [in,out] | channel_list | List of channels |
This method returs the complete list of channels in the configuration.
|
virtual |
Get channel list.
| [in,out] | channel_list | List of channels |
This method returs the complete list of channels in the configuration.
|
virtual |
Get channel list.
| [in,out] | channel_list | List of channels |
This method returs the complete list of channels in the configuration.
|
virtual |
Obtain the list of configuration parameters.
| [in,out] | params | output vector with the list of config parameters |
This methods prepare a vector with all the configuration parameters of a sensor with the purpose to keep it in memory.
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, and testSensorConfig::MyDeviceConfig.
|
virtual |
Obtain the list of configuration parameters.
| [in,out] | params | output vector with the list of config parameters |
This methods prepare a vector with all the configuration parameters of a sensor with the purpose to keep it in memory.
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, and testSensorConfig::MyDeviceConfig.
|
virtual |
Obtain the list of configuration parameters.
| [in,out] | params | output vector with the list of config parameters |
This methods prepare a vector with all the configuration parameters of a sensor with the purpose to keep it in memory.
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, and testSensorConfig::MyDeviceConfig.
|
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 from devmgr::common::DeviceConfig.
|
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 from devmgr::common::DeviceConfig.
|
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 from devmgr::common::DeviceConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, testSensorConfig::MyDeviceConfig, and testSensorLcsIf::TestSensorConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, testSensorConfig::MyDeviceConfig, and testSensorLcsIf::TestSensorConfig.
|
virtual |
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, testSensorConfig::MyDeviceConfig, and testSensorLcsIf::TestSensorConfig.
|
virtual |
Read the configuration.
This reads the sensor configuration attributes in memory and check the presence of all attributes that are mandatory.
| std::runtime_error | in case of an error |
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, and testSensorConfig::MyDeviceConfig.
|
virtual |
Read the configuration.
This reads the sensor configuration attributes in memory and check the presence of all attributes that are mandatory.
| std::runtime_error | in case of an error |
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, and testSensorConfig::MyDeviceConfig.
|
virtual |
Read the configuration.
This reads the sensor configuration attributes in memory and check the presence of all attributes that are mandatory.
| std::runtime_error | in case of an error |
Implements devmgr::common::IDeviceConfig.
Reimplemented in testSensor::MyDeviceConfig, and testSensorConfig::MyDeviceConfig.
|
friend |
|
friend |
1.8.5