MessagePack for C++
parse_decl.hpp
Go to the documentation of this file.
1 //
2 // MessagePack for C++ deserializing routine
3 //
4 // Copyright (C) 2018 KONDO Takatoshi
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 //
10 #ifndef MSGPACK_V2_PARSE_DECL_HPP
11 #define MSGPACK_V2_PARSE_DECL_HPP
12 
13 #include "msgpack/parse_return.hpp"
14 
15 namespace msgpack {
16 
20 
21 namespace detail {
22 
23 template <typename VisitorHolder>
24 class context;
25 
26 } // detail
27 
28 
30 
31 template <typename VisitorHolder, typename ReferencedBufferHook>
32 class parser;
33 
34 
36 
45 template <typename Visitor>
46 bool parse(const char* data, size_t len, size_t& off, Visitor& v);
47 
48 
50 
58 template <typename Visitor>
59 bool parse(const char* data, size_t len, Visitor& v);
60 
61 namespace detail {
62 
63 template <typename Visitor>
64 struct parse_helper;
65 
66 template <typename Visitor>
67 inline parse_return
68 parse_imp(const char* data, size_t len, size_t& off, Visitor& v);
69 
70 } // detail
71 
73 } // MSGPACK_API_VERSION_NAMESPACE(v2)
75 
76 } // namespace msgpack
77 
78 
79 #endif // MSGPACK_V2_PARSE_DECL_HPP
Parsing class for a stream deserialization.
Definition: parse_decl.hpp:32
parse_return parse_imp(const char *data, size_t len, size_t &off, Visitor &v)
Definition: adaptor_base.hpp:15
parse_return
Definition: parse_return.hpp:23
bool parse(const char *data, size_t len, size_t &off, Visitor &v)
Unpack msgpack formatted data via a visitor.
Definition: parse_decl.hpp:64
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66