Classes | Public Member Functions | Private Member Functions | Private Attributes
DynamicParameter Class Reference

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

#include <DynamicParameterClass.h>

List of all members.

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.
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.
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.

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

Stores an enum-string matching map.

Definition at line 110 of file DynamicParameterClass.h.

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 Thu Jun 6 2019 18:29:08