- Author
- Alexander Sherikov
- Copyright
- 2018 Alexander Sherikov, Licensed under the Apache License, Version 2.0. (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
Definition in file reader.cpp.
Go to the source code of this file.
#include <set>
#include <boost/lexical_cast.hpp>
#include <ariles2/visitors/ros2param.h>
#include "node_wrapper.h"
◆ ARILES2_BASIC_TYPE [1/3]
#define ARILES2_BASIC_TYPE |
( |
|
type | ) |
|
Value: void Reader::readElement(type &element) \
{ \
int64_t tmp_value; \
impl_->readElement<rclcpp::ParameterType::PARAMETER_INTEGER>(tmp_value); \
CPPUT_ASSERT( \
tmp_value <= std::numeric_limits<type>::max() && tmp_value >= std::numeric_limits<type>::min(), \
"Value is out of range."); \
element = static_cast<type>(tmp_value); \
}
Definition at line 406 of file reader.cpp.
◆ ARILES2_BASIC_TYPE [2/3]
#define ARILES2_BASIC_TYPE |
( |
|
type | ) |
|
Value: void Reader::readElement(type &element) \
{ \
CPPUT_TRACE_FUNCTION; \
int64_t tmp_value; \
impl_->readElement<rclcpp::ParameterType::PARAMETER_INTEGER>(tmp_value); \
CPPUT_ASSERT(tmp_value >= 0, "Expected positive value."); \
CPPUT_ASSERT(static_cast<uint64_t>(tmp_value) <= std::numeric_limits<type>::max(), "Value is too large."); \
element = static_cast<type>(tmp_value); \
}
Definition at line 406 of file reader.cpp.
◆ ARILES2_BASIC_TYPE [3/3]
#define ARILES2_BASIC_TYPE |
( |
|
type | ) |
|
Value: void Reader::readElement(type &element) \
{ \
CPPUT_TRACE_FUNCTION; \
double tmp_value; \
impl_->readElement<rclcpp::ParameterType::PARAMETER_DOUBLE>(tmp_value); \
element = static_cast<type>(tmp_value); \
}
Definition at line 406 of file reader.cpp.