MessagePack for C++
Loading...
Searching...
No Matches
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
15#include "msgpack/zone.hpp"
16#include "msgpack/object.h"
17
18#include <typeinfo>
19
20namespace msgpack {
21
25
26
27namespace 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
48struct object;
49struct object_kv;
50
51struct object_array;
52struct object_map;
53struct object_str;
54struct object_bin;
55struct object_ext;
56
57
58#if !defined(MSGPACK_USE_CPP03)
59
60namespace adaptor {
61template <typename T, typename Enabler = void>
62struct as;
63} // namespace adaptor
64
65template <typename T>
66struct has_as;
67
68#endif // !defined(MSGPACK_USE_CPP03)
69
70class 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.hpp:236
object_type
Definition object_fwd_decl.hpp:28
@ EXT
Definition object_fwd_decl.hpp:43
@ FLOAT64
Definition object_fwd_decl.hpp:34
@ BOOLEAN
Definition object_fwd_decl.hpp:30
@ MAP
Definition object_fwd_decl.hpp:42
@ NIL
Definition object_fwd_decl.hpp:29
@ STR
Definition object_fwd_decl.hpp:39
@ FLOAT
Definition object_fwd_decl.hpp:35
@ ARRAY
Definition object_fwd_decl.hpp:41
@ BIN
Definition object_fwd_decl.hpp:40
@ POSITIVE_INTEGER
Definition object_fwd_decl.hpp:31
@ NEGATIVE_INTEGER
Definition object_fwd_decl.hpp:32
@ FLOAT32
Definition object_fwd_decl.hpp:33
Definition adaptor_base.hpp:15
Definition object_fwd_decl.hpp:62
Definition object_fwd.hpp:53
#define MSGPACK_DEPRECATED(msg)
Definition cpp_config.hpp:136
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:58