Ariles
msgpack.h
Go to the documentation of this file.
1 /**
2  @file
3  @author Alexander Sherikov
4 
5  @copyright 2014-2017 INRIA. Licensed under the Apache License, Version 2.0.
6  (see @ref LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
7 
8  @copyright 2017-2018 Alexander Sherikov, Licensed under the Apache License, Version 2.0.
9  (see @ref LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
10 
11  @brief
12 */
13 
14 #pragma once
15 
16 #define ARILES_VISITOR_INCLUDED_msgpack
17 
19 #include <ariles/internal/node.h>
20 #include <ariles/visitors/config.h>
21 
22 namespace ariles
23 {
24  namespace ns_msgpack
25  {
26  template <class t_Base, class t_Implementation>
28  {
29  protected:
30  typedef t_Implementation Impl;
31  typedef ARILES_SHARED_PTR<t_Implementation> ImplPtr;
32 
33  protected:
35 
36 
37  private:
38  Base(const Base &);
39  Base &operator=(const Base &);
40 
41  protected:
42  Base(){};
43  ~Base(){};
44 
45 
46  public:
48  {
49  static const serialization::Features parameters; // all disabled
50  return (parameters);
51  }
52  };
53  } // namespace ns_msgpack
54 } // namespace ariles
55 
56 
57 
58 #include "./msgpack/reader.h"
59 #include "./msgpack/writer.h"
62 
63 
64 #ifndef ARILES_BRIDGE_INCLUDED_msgpack
65 namespace ariles
66 {
67  /**
68  * @brief MessagePack visitor.
69  */
71  {
74  };
75 } // namespace ariles
76 #endif
77 
78 namespace ariles
79 {
81  {
84  };
85 } // namespace ariles
const serialization::Features & getSerializationFeatures() const
Definition: msgpack.h:47
ariles::cfgwrite::Visitor< ns_msgpack::Writer > Writer
Definition: msgpack.h:73
t_Implementation Impl
Definition: msgpack.h:30
ariles::cfgwrite::Visitor< ns_msgpack_compact::Writer > Writer
Definition: msgpack.h:83
#define ARILES_VISIBILITY_ATTRIBUTE
Definition: helpers.h:69
ARILES_SHARED_PTR< t_Implementation > ImplPtr
Definition: msgpack.h:31
Definition: basic.h:17
ariles::cfgread::Visitor< ns_msgpack::Reader > Reader
Definition: msgpack.h:72
ariles::cfgread::Visitor< ns_msgpack_compact::Reader > Reader
Definition: msgpack.h:82