Class to read parameter file and set the correct hardware parameters. More...
#include <DynamicParameterClass.h>
Classes | |
struct | Settings |
Inline struct to store the settings. More... | |
Public Member Functions | |
DynamicParameter (const uint16_t major_version, const uint16_t minor_version, XmlRpc::XmlRpcValue ¶meters) | |
DynamicParameter constructs a new dynamic parameter handler. | |
const Settings & | getSettings () const |
Private Member Functions | |
void | parse_parameters (const uint16_t major_version, const uint16_t minor_version, XmlRpc::XmlRpcValue ¶meters) |
This method parses the given XmlRpcValue array and sets the corresponding parameters. | |
bool | xml_rpc_value_to_vector (XmlRpc::XmlRpcValue my_array, std::vector< float > &my_vector) |
Converts the given XmlRpcValue array to a std:vector /param my_array XmlRpcValue array created by reading the parameter file /param my_vector Vector to write the array values to. | |
Private Attributes | |
std::map < driver_svh::SVHChannel, std::string > | m_name_to_enum |
Stores an enum-string matching map. | |
Settings | m_settings |
Stores the settings received by the firmware. |
Class to read parameter file and set the correct hardware parameters.
Definition at line 42 of file DynamicParameterClass.h.
DynamicParameter::DynamicParameter | ( | const uint16_t | major_version, |
const uint16_t | minor_version, | ||
XmlRpc::XmlRpcValue & | parameters | ||
) |
DynamicParameter constructs a new dynamic parameter handler.
major_version | The major version of the svh hardware |
minor_version | The minor version of the svh hardware |
parameters | An array of type XmlRpcValue with parsed parameter file |
Definition at line 34 of file DynamicParameterClass.cpp.
const Settings& DynamicParameter::getSettings | ( | ) | const [inline] |
Definition at line 85 of file DynamicParameterClass.h.
void DynamicParameter::parse_parameters | ( | const uint16_t | major_version, |
const uint16_t | minor_version, | ||
XmlRpc::XmlRpcValue & | parameters | ||
) | [private] |
This method parses the given XmlRpcValue array and sets the corresponding parameters.
major_version | The major version of the svh hardware |
minor_version | The minor version of the svh hardware |
parameters | An array of type XmlRpcValue with parsed parameter file |
Definition at line 99 of file DynamicParameterClass.cpp.
bool DynamicParameter::xml_rpc_value_to_vector | ( | XmlRpc::XmlRpcValue | my_array, |
std::vector< float > & | my_vector | ||
) | [private] |
Converts the given XmlRpcValue array to a std:vector /param my_array XmlRpcValue array created by reading the parameter file /param my_vector Vector to write the array values to.
Definition at line 71 of file DynamicParameterClass.cpp.
std::map<driver_svh::SVHChannel, std::string> DynamicParameter::m_name_to_enum [private] |
Stores an enum-string matching map.
Definition at line 110 of file DynamicParameterClass.h.
Settings DynamicParameter::m_settings [private] |
Stores the settings received by the firmware.
Definition at line 107 of file DynamicParameterClass.h.