MessagePack for C++
object_fwd_decl.hpp
Go to the documentation of this file.
1 //
2 // MessagePack for C++ static resolution routine
3 //
4 // Copyright (C) 2008-2016 FURUHASHI Sadayuki and 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 
11 #ifndef MSGPACK_V1_OBJECT_FWD_DECL_HPP
12 #define MSGPACK_V1_OBJECT_FWD_DECL_HPP
13 
14 #include "msgpack/versioning.hpp"
15 #include "msgpack/zone.hpp"
16 #include "msgpack/object.h"
17 
18 #include <typeinfo>
19 
20 namespace msgpack {
21 
25 
26 
27 namespace type {
28  enum object_type {
29  NIL = MSGPACK_OBJECT_NIL,
30  BOOLEAN = MSGPACK_OBJECT_BOOLEAN,
31  POSITIVE_INTEGER = MSGPACK_OBJECT_POSITIVE_INTEGER,
32  NEGATIVE_INTEGER = MSGPACK_OBJECT_NEGATIVE_INTEGER,
33  FLOAT = MSGPACK_OBJECT_FLOAT,
34 #if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
35  DOUBLE = MSGPACK_OBJECT_DOUBLE, // obsolete
36 #endif // MSGPACK_USE_LEGACY_NAME_AS_FLOAT
37  STR = MSGPACK_OBJECT_STR,
38  BIN = MSGPACK_OBJECT_BIN,
39  ARRAY = MSGPACK_OBJECT_ARRAY,
40  MAP = MSGPACK_OBJECT_MAP,
41  EXT = MSGPACK_OBJECT_EXT
42  };
43 }
44 
45 
46 struct object;
47 struct object_kv;
48 
49 struct object_array;
50 struct object_map;
51 struct object_str;
52 struct object_bin;
53 struct object_ext;
54 
55 
56 #if !defined(MSGPACK_USE_CPP03)
57 
58 namespace adaptor {
59 template <typename T, typename Enabler = void>
60 struct as;
61 } // namespace adaptor
62 
63 template <typename T>
64 struct has_as;
65 
66 #endif // !defined(MSGPACK_USE_CPP03)
67 
68 class type_error;
69 
71 } // MSGPACK_API_VERSION_NAMESPACE(v1)
73 
74 } // namespace msgpack
75 
76 #endif // MSGPACK_V1_OBJECT_FWD_DECL_HPP
Definition: object_fwd_decl.hpp:37
Definition: object_fwd.hpp:42
Definition: object_fwd_decl.hpp:30
Definition: object_fwd_decl.hpp:60
Definition: object_fwd_decl.hpp:38
Definition: adaptor_base.hpp:15
Definition: object_fwd_decl.hpp:33
object_type
Definition: object_fwd_decl.hpp:28
Definition: object.hpp:29
Definition: object_fwd_decl.hpp:29
Definition: object_fwd_decl.hpp:32
Definition: object_fwd.hpp:22
Definition: object_fwd.hpp:222
Definition: object_fwd_decl.hpp:41
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
Definition: object_fwd_decl.hpp:39
Definition: object_fwd_decl.hpp:40
Definition: object_fwd.hpp:53
Definition: object_fwd.hpp:27
Definition: object_fwd.hpp:37
Definition: object_fwd.hpp:32
Definition: object_fwd_decl.hpp:31