This class wraps an XmlRpcValue for convenience.
More...
#include <ros-parameter-manager.hpp>
|
| ParamValue (const XmlRpc::XmlRpcValue &v) |
|
template<typename T > |
T | as () |
| Convert the stored value to a specific type.
|
|
template<typename T > |
void | as (T &x) |
| Convert the stored value to a specific type and store it in the given variable.
|
|
template<typename T > |
std::vector< T > | as_vec () |
| Convert the stored value to a vector of a specific type.
|
|
template<typename T > |
void | as_vec (std::vector< T > &x) |
| Convert the stored value to a vector of a specific type and store it in the given vector.
|
|
|
std::ostream & | operator<< (std::ostream &os, const ParamValue &obj) |
| Overloaded stream insertion operator to print the stored value.
|
|
This class wraps an XmlRpcValue for convenience.
◆ as() [1/2]
template<typename T >
T rush::ros::ParamValue::as |
( |
| ) |
|
|
inline |
Convert the stored value to a specific type.
- Template Parameters
-
- Returns
- The converted value.
◆ as() [2/2]
template<typename T >
void rush::ros::ParamValue::as |
( |
T & | x | ) |
|
|
inline |
Convert the stored value to a specific type and store it in the given variable.
- Template Parameters
-
- Parameters
-
x | Reference to the variable where the converted value will be stored. |
◆ as_vec() [1/2]
template<typename T >
std::vector< T > rush::ros::ParamValue::as_vec |
( |
| ) |
|
|
inline |
Convert the stored value to a vector of a specific type.
- Template Parameters
-
- Returns
- The vector of converted values.
◆ as_vec() [2/2]
template<typename T >
void rush::ros::ParamValue::as_vec |
( |
std::vector< T > & | x | ) |
|
|
inline |
Convert the stored value to a vector of a specific type and store it in the given vector.
- Template Parameters
-
- Parameters
-
x | Reference to the vector where the converted values will be stored. |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const ParamValue & | obj ) |
|
friend |
Overloaded stream insertion operator to print the stored value.
- Parameters
-
os | Output stream. |
obj | ParamValue object to be printed. |
- Returns
- The output stream.
The documentation for this class was generated from the following file: