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 <stdint.h>
17 #include <typeinfo>
18 
19 namespace msgpack {
20 
24 
25 
26 namespace type {
27  enum object_type {
28  NIL = 0x00,
29  BOOLEAN = 0x01,
32  FLOAT32 = 0x0a,
33  FLOAT64 = 0x04,
34  FLOAT = 0x04,
35 #if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
36  DOUBLE = MSGPACK_DEPRECATED("please use FLOAT64 instead") FLOAT, // obsolete
37 #endif // MSGPACK_USE_LEGACY_NAME_AS_FLOAT
38  STR = 0x05,
39  BIN = 0x06,
40  ARRAY = 0x07,
41  MAP = 0x08,
42  EXT = 0x09
43  };
44 }
45 
46 
47 struct object;
48 struct object_kv;
49 
50 struct object_array;
51 struct object_map;
52 struct object_str;
53 struct object_bin;
54 struct object_ext;
55 
56 
57 #if !defined(MSGPACK_USE_CPP03)
58 
59 namespace adaptor {
60 template <typename T, typename Enabler = void>
61 struct as;
62 } // namespace adaptor
63 
64 template <typename T>
65 struct has_as;
66 
67 #endif // !defined(MSGPACK_USE_CPP03)
68 
69 class type_error;
70 
72 } // MSGPACK_API_VERSION_NAMESPACE(v1)
74 
75 } // namespace msgpack
76 
77 #endif // MSGPACK_V1_OBJECT_FWD_DECL_HPP
Definition: object_fwd.hpp:231
object_type
Definition: object_fwd_decl.hpp:27
@ EXT
Definition: object_fwd_decl.hpp:42
@ FLOAT64
Definition: object_fwd_decl.hpp:33
@ BOOLEAN
Definition: object_fwd_decl.hpp:29
@ MAP
Definition: object_fwd_decl.hpp:41
@ NIL
Definition: object_fwd_decl.hpp:28
@ STR
Definition: object_fwd_decl.hpp:38
@ FLOAT
Definition: object_fwd_decl.hpp:34
@ ARRAY
Definition: object_fwd_decl.hpp:40
@ BIN
Definition: object_fwd_decl.hpp:39
@ POSITIVE_INTEGER
Definition: object_fwd_decl.hpp:30
@ NEGATIVE_INTEGER
Definition: object_fwd_decl.hpp:31
@ FLOAT32
Definition: object_fwd_decl.hpp:32
Definition: adaptor_base.hpp:15
Definition: object_fwd_decl.hpp:61
Definition: object_fwd.hpp:53
#define MSGPACK_DEPRECATED(msg)
Definition: cpp_config.hpp:138
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66