- 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 writer.cpp.
Go to the source code of this file.
#include <variant>
#include <boost/lexical_cast.hpp>
#include <ariles2/visitors/ros2param.h>
#include "modifier.h"
◆ ARILES2_BASIC_TYPE [1/3]
      
        
          | #define ARILES2_BASIC_TYPE | ( |  | type | ) |  | 
      
 
Value:    void Writer::writeElement(const type &element, const Parameters &)                                                 \
    {                                                                                                                  \
        if (not impl_->back().tryPushArray(element))                                                                   \
        {                                                                                                              \
            impl_->setParameter(element);                                                                              \
        }                                                                                                              \
    }
#define CPPUT_TRACE_FUNCTION
Definition at line 157 of file writer.cpp.
 
 
◆ ARILES2_BASIC_TYPE [2/3]
      
        
          | #define ARILES2_BASIC_TYPE | ( |  | type | ) |  | 
      
 
Value:    void Writer::writeElement(const type &element, const Parameters &)                                                 \
    {                                                                                                                  \
        if (not impl_->back().tryPushArray<int64_t>(element))                                                          \
        {                                                                                                              \
            impl_->setParameter(static_cast<int64_t>(element));                                                        \
        }                                                                                                              \
    }
Definition at line 157 of file writer.cpp.
 
 
◆ ARILES2_BASIC_TYPE [3/3]
      
        
          | #define ARILES2_BASIC_TYPE | ( |  | type | ) |  | 
      
 
Value:    void Writer::writeElement(const type &element, const Parameters &)                                                 \
    {                                                                                                                  \
        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 157 of file writer.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 at line 151 of file writer.cpp.