Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
DynamicParameter Class Reference

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 &parameters)
 DynamicParameter constructs a new dynamic parameter handler. More...
 
const SettingsgetSettings () const
 

Private Member Functions

void parse_parameters (const uint16_t major_version, const uint16_t minor_version, XmlRpc::XmlRpcValue &parameters)
 This method parses the given XmlRpcValue array and sets the corresponding parameters. More...
 
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. More...
 

Private Attributes

std::map< driver_svh::SVHChannel, std::string > m_name_to_enum
 Stores an enum-string matching map. More...
 
Settings m_settings
 Stores the settings received by the firmware. More...
 

Detailed Description

Class to read parameter file and set the correct hardware parameters.

Definition at line 42 of file DynamicParameterClass.h.

Constructor & Destructor Documentation

DynamicParameter::DynamicParameter ( const uint16_t  major_version,
const uint16_t  minor_version,
XmlRpc::XmlRpcValue parameters 
)

DynamicParameter constructs a new dynamic parameter handler.

Parameters
major_versionThe major version of the svh hardware
minor_versionThe minor version of the svh hardware
parametersAn array of type XmlRpcValue with parsed parameter file

Definition at line 34 of file DynamicParameterClass.cpp.

Member Function Documentation

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.

Parameters
major_versionThe major version of the svh hardware
minor_versionThe minor version of the svh hardware
parametersAn 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.

Member Data Documentation

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.


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


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Mon Jun 10 2019 15:04:59