|
ifw-fcf
2.0.0
|
adc Configuration class More...
#include <adcConfig.hpp>
Public Member Functions | |
| AdcConfig (const std::string filename, const std::string name) | |
| DeviceConfig constructor. More... | |
| virtual | ~AdcConfig () |
| 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 void | GetMotorConfig (fcf::common::VectorVariant ¶ms) |
| Obtain the list of ADC motor configuration parameters. More... | |
| virtual void | GetMotorConfig (const std::string motor, fcf::common::VectorVariant ¶ms) |
| virtual void | SetScaleFactor (const std::string motor, double scale_factor) |
| virtual void | GetConfigList (std::vector< std::string > &cfg_list, std::string prefix) |
| Get configuration list. More... | |
| virtual std::string | GetMotorMapFile () |
| virtual std::string | GetMotorType () |
| virtual std::string | GetMotorPrefix (const std::string motor) |
| void | GetMotorNames (std::vector< std::string > &motor_names) |
| void | GetMotorPrefixes (std::vector< std::string > &motor_prefixes) |
| double | GetMotorVelocity (const int axis_num) |
| double | GetMotorScaleFactor (const int axis_num) |
| double | GetMotorScaleFactor (const std::string motor_name) |
| std::string | GetMotorName (const std::string nodeid) |
Public Member Functions inherited from fcf::devmgr::common::DeviceConfig | |
| DeviceConfig (const std::string &filename, const std::string &name) | |
| DeviceConfig constructor. More... | |
| virtual | ~DeviceConfig () |
| DeviceConfig destructor. More... | |
| 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... | |
| virtual std::string | GetMapFile () |
| Get name of the device mapping file. More... | |
adc Configuration class
This class manages the configuration of a adc. It reads the configuration file and provides the methods to obtain the parameters used by the auxiliary classes.
| fcf::devmgr::adc::AdcConfig::AdcConfig | ( | 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 |
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 adc with the purpose to write it into the controller.
Reimplemented from fcf::devmgr::common::DeviceConfig.
Reimplemented in testAdc::MyDeviceConfig, and testAdcConfig::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 fcf::devmgr::common::DeviceConfig.
|
virtual |
Obtain the list of ADC motor configuration parameters.
| [in,out] | params | output vector with the list of ADC motor config parameters |
This methods prepare a vector with all ADC motor configuration parameters. These parameters have to be handled separately from the ADC normal configuration because they use a different mapping file.
|
virtual |
|
virtual |
| std::string fcf::devmgr::adc::AdcConfig::GetMotorName | ( | const std::string | nodeid | ) |
| void fcf::devmgr::adc::AdcConfig::GetMotorNames | ( | std::vector< std::string > & | motor_names | ) |
|
virtual |
| void fcf::devmgr::adc::AdcConfig::GetMotorPrefixes | ( | std::vector< std::string > & | motor_prefixes | ) |
| double fcf::devmgr::adc::AdcConfig::GetMotorScaleFactor | ( | const int | axis_num | ) |
| double fcf::devmgr::adc::AdcConfig::GetMotorScaleFactor | ( | const std::string | motor_name | ) |
|
virtual |
| double fcf::devmgr::adc::AdcConfig::GetMotorVelocity | ( | const int | axis_num | ) |
|
virtual |
Read the configuration.
This reads the adc configuration attributes in memory and check the presence of all attributes that are mandatory.
| std::runtime_error | in case of an error |
Reimplemented from fcf::devmgr::common::DeviceConfig.
Reimplemented in testAdc::MyDeviceConfig, and testAdcConfig::MyDeviceConfig.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Maps of ADC axes configuration.
|
protected |
Map between motor prefix and motor name This is needed to map the correct motor name when receiving OPCUA events.
|
protected |
1.8.5