Ariles
writer.h
Go to the documentation of this file.
1 /**
2  @file
3  @author Alexander Sherikov
4 
5  @copyright 2018 Alexander Sherikov, Licensed under the Apache License, Version 2.0.
6  (see @ref LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
7 
8  @brief
9 */
10 
11 #pragma once
12 
13 
14 namespace ariles2
15 {
16  namespace ns_rosparam
17  {
18  namespace impl
19  {
21  }
22 
23 
24 
25  /**
26  * @brief Configuration writer class
27  */
28  class ARILES2_VISIBILITY_ATTRIBUTE Writer : public serialization::PIMPLVisitor<write::Visitor, impl::Writer>
29  {
30  public:
31  explicit Writer(const ::ros::NodeHandle &nh);
32 
33 
34  void flush();
35 
36 
37  void startMapEntry(const std::string &map_name);
38  void endMapEntry();
39 
40  void startArray(const std::size_t size, const bool /*compact*/ = false);
41  void startArrayElement();
42  void endArrayElement();
43  void endArray();
44 
45  void startRoot(const std::string &name, const Parameters &);
46  void endRoot(const std::string &name);
47 
48 
49 #define ARILES2_BASIC_TYPE(type) void writeElement(const type &element, const Parameters &param);
50 
52 
53 #undef ARILES2_BASIC_TYPE
54  };
55  } // namespace ns_rosparam
56 } // namespace ariles2
ariles2
Definition: basic.h:16
ariles2::ns_rosparam::impl::Writer
Definition: writer.cpp:21
ARILES2_BASIC_TYPES_LIST
#define ARILES2_BASIC_TYPES_LIST
Definition: helpers.h:131
ariles2::ns_rosparam::ARILES2_MACRO_SUBSTITUTE
ARILES2_MACRO_SUBSTITUTE(ARILES2_BASIC_SIGNED_INTEGER_TYPES_LIST) ARILES2_MACRO_SUBSTITUTE(ARILES2_BASIC_UNSIGNED_INTEGER_TYPES_LIST) ARILES2_MACRO_SUBSTITUTE(ARILES2_BASIC_REAL_TYPES_LIST) void Reader
Definition: reader.cpp:188
ariles2::ns_yaml_cpp::impl::Writer
class ARILES2_VISIBILITY_ATTRIBUTE Writer
Definition: writer.h:19
ariles2::serialization::PIMPLVisitor
Definition: serialization.h:121
ARILES2_VISIBILITY_ATTRIBUTE
#define ARILES2_VISIBILITY_ATTRIBUTE
Definition: helpers.h:138
ariles2::ns_rosparam::Writer
Configuration writer class.
Definition: writer.h:28