Ariles
Classes | Namespaces | Macros
declarator.cpp File Reference

Detailed Description

Author
Alexander Sherikov

Definition in file declarator.cpp.

Go to the source code of this file.

#include <variant>
#include <boost/lexical_cast.hpp>
#include <ariles2/visitors/ros2param.h>
#include "modifier.h"

Classes

class  ariles2::ns_ros2param::impl::Declarator
 

Namespaces

 ariles2
 
 ariles2::ns_ros2param
 
 ariles2::ns_ros2param::impl
 

Macros

#define ARILES2_ROS2PARAM_NATIVE_TYPES_LIST
 
#define ARILES2_BASIC_TYPE(type)
 
#define ARILES2_BASIC_TYPE(type)
 
#define ARILES2_BASIC_TYPE(type)
 

Macro Definition Documentation

◆ ARILES2_BASIC_TYPE [1/3]

#define ARILES2_BASIC_TYPE (   type)
Value:
void Declarator::writeElement(const type &element, const Parameters &) \
{ \
CPPUT_TRACE_FUNCTION; \
if (not impl_->back().tryPushArray(element)) \
{ \
impl_->setParameter(element); \
} \
}
visitor::Parameters Parameters
Definition: count.h:26

Definition at line 169 of file declarator.cpp.

◆ ARILES2_BASIC_TYPE [2/3]

#define ARILES2_BASIC_TYPE (   type)
Value:
void Declarator::writeElement(const type &element, const Parameters &) \
{ \
CPPUT_TRACE_FUNCTION; \
if (not impl_->back().tryPushArray<int64_t>(element)) \
{ \
impl_->setParameter(static_cast<int64_t>(element)); \
} \
}

Definition at line 169 of file declarator.cpp.

◆ ARILES2_BASIC_TYPE [3/3]

#define ARILES2_BASIC_TYPE (   type)
Value:
void Declarator::writeElement(const type &element, const Parameters &) \
{ \
CPPUT_TRACE_FUNCTION; \
CPPUT_ASSERT( \
static_cast<uint64_t>(element) <= static_cast<uint64_t>(std::numeric_limits<int64_t>::max()), \
"Value is too large."); \
if (not impl_->back().tryPushArray<int64_t>(element)) \
{ \
impl_->setParameter(static_cast<int64_t>(element)); \
} \
}

Definition at line 169 of file declarator.cpp.

◆ ARILES2_ROS2PARAM_NATIVE_TYPES_LIST

#define ARILES2_ROS2PARAM_NATIVE_TYPES_LIST
Value:
ARILES2_BASIC_TYPE(double) \
ARILES2_BASIC_TYPE(std::string)
#define ARILES2_BASIC_TYPE(type)
Definition: declarator.cpp:169

Definition at line 163 of file declarator.cpp.