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  FLOAT32 = MSGPACK_OBJECT_FLOAT32,
34  FLOAT64 = MSGPACK_OBJECT_FLOAT64,
35  FLOAT = MSGPACK_OBJECT_FLOAT,
36 #if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
37  DOUBLE = MSGPACK_DEPRECATED("please use FLOAT64 instead") MSGPACK_OBJECT_DOUBLE, // obsolete
38 #endif // MSGPACK_USE_LEGACY_NAME_AS_FLOAT
39  STR = MSGPACK_OBJECT_STR,
40  BIN = MSGPACK_OBJECT_BIN,
41  ARRAY = MSGPACK_OBJECT_ARRAY,
42  MAP = MSGPACK_OBJECT_MAP,
43  EXT = MSGPACK_OBJECT_EXT
44  };
45 }
46 
47 
48 struct object;
49 struct object_kv;
50 
51 struct object_array;
52 struct object_map;
53 struct object_str;
54 struct object_bin;
55 struct object_ext;
56 
57 
58 #if !defined(MSGPACK_USE_CPP03)
59 
60 namespace adaptor {
61 template <typename T, typename Enabler = void>
62 struct as;
63 } // namespace adaptor
64 
65 template <typename T>
66 struct has_as;
67 
68 #endif // !defined(MSGPACK_USE_CPP03)
69 
70 class type_error;
71 
73 } // MSGPACK_API_VERSION_NAMESPACE(v1)
75 
76 } // namespace msgpack
77 
78 #endif // MSGPACK_V1_OBJECT_FWD_DECL_HPP
Definition: object_fwd_decl.hpp:39
Definition: object_fwd.hpp:42
Definition: object_fwd_decl.hpp:33
Definition: object_fwd_decl.hpp:30
Definition: object_fwd_decl.hpp:62
Definition: object_fwd_decl.hpp:40
Definition: adaptor_base.hpp:15
Definition: object_fwd_decl.hpp:35
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:236
Definition: object_fwd_decl.hpp:43
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:41
Definition: object_fwd_decl.hpp:42
Definition: object_fwd_decl.hpp:34
Definition: object_fwd.hpp:53
Definition: object_fwd.hpp:27
Definition: object_fwd.hpp:37
#define MSGPACK_DEPRECATED(msg)
Definition: cpp_config.hpp:132
Definition: object_fwd.hpp:32
Definition: object_fwd_decl.hpp:31