Compare commits
252 Commits
temp-llvm-
...
soc-2021-a
Author | SHA1 | Date | |
---|---|---|---|
973bd8c480 | |||
6748f5cfbb | |||
e07f8a6214 | |||
dcbd6f4257 | |||
7a0683cf05 | |||
fd9b3419ea | |||
9d32df72b4 | |||
030e53da23 | |||
6c5a5cb83d | |||
c5433fdcb2 | |||
4b8dc73996 | |||
04496a2e01 | |||
653da43627 | |||
672e4c3fa5 | |||
b37ecf5855 | |||
0514f64a0f | |||
c5461f624e | |||
189c38dced | |||
b04ba2e8eb | |||
48278754a7 | |||
ffcc059abf | |||
a5c01917e8 | |||
5bdf40dcda | |||
940ee5d587 | |||
9635768cda | |||
1600f3de96 | |||
79f70b1b09 | |||
d1b89d1a71 | |||
28732a6ee1 | |||
3b54908fd7 | |||
68e2240857 | |||
f2e0b6b21c | |||
f0721e7b16 | |||
8abda209a4 | |||
3192103d22 | |||
25cfaf2e5c | |||
01881edbe9 | |||
89e7d6b02f | |||
f1c057006b | |||
33a37c854e | |||
c47d67260e | |||
8f283d50d7 | |||
611172fd8c | |||
8e8946c545 | |||
7608be58f1 | |||
ab857c4ce9 | |||
ee7425dab7 | |||
4465d236d2 | |||
6acfed0712 | |||
c4f5736275 | |||
d134678da7 | |||
d17b21604d | |||
950857656d | |||
bf0f118419 | |||
e68cf37413 | |||
5afe71daf5 | |||
111458f6c7 | |||
53033ffd11 | |||
e4165cdcf9 | |||
161fa5b4da | |||
1a1185b599 | |||
72d10c1edc | |||
bd0a9f1943 | |||
aa7fceb7a1 | |||
0cbad198c7 | |||
ba82bc87aa | |||
bb31b5bca0 | |||
b3d8a748a3 | |||
f9c2f52517 | |||
1717a4d55c | |||
31d2283c3c | |||
1501a34915 | |||
99b9417f42 | |||
be8d07b349 | |||
3aca3d8ad3 | |||
e57f77f6bf | |||
c73bc92e06 | |||
7519d40091 | |||
ba26266997 | |||
2f60cb83c5 | |||
b19335d5f3 | |||
c7a231c75d | |||
78c1afa8fd | |||
9de42e7030 | |||
fb67bf4941 | |||
5bef741e58 | |||
acaf87d88c | |||
e3947dfd10 | |||
84562e2eac | |||
4e2a10352d | |||
cb9424b99c | |||
44c82975ec | |||
cae9f4dd95 | |||
fdda6f3f63 | |||
29c73ddd2e | |||
dc1144f59f | |||
bffe7c58d9 | |||
20d24a9995 | |||
764ddf1d8f | |||
dd364de831 | |||
094e0e740c | |||
4e154c59a2 | |||
d1c296519c | |||
0772a217b9 | |||
c90331221c | |||
b04f0c47e1 | |||
3170667177 | |||
6852a81516 | |||
0d68431f94 | |||
609435bcff | |||
f0f29153d2 | |||
a4350ffaec | |||
c277047cb3 | |||
1479175a9a | |||
11ceeef00c | |||
f81d1d4ad6 | |||
dcb069ed25 | |||
bec5b06b55 | |||
249115583c | |||
d71ee2d5e3 | |||
1ab96c45a0 | |||
612ebd73f9 | |||
059fe4ff63 | |||
151a8a3894 | |||
87e3b5a52b | |||
d2f7b1a1e8 | |||
358030554a | |||
b5f262b3e0 | |||
c080ca1b37 | |||
1780f2aaf8 | |||
5567ceea92 | |||
642288268c | |||
fbef3efcf9 | |||
1549da9678 | |||
6f39ef31ea | |||
d7531b6a9a | |||
c4a08df49e | |||
790f69d122 | |||
8801d58ce8 | |||
4d3cfce00f | |||
460fea65ad | |||
a21cb0b63a | |||
1bfedda596 | |||
3ccc9cdbd4 | |||
d2244cb40b | |||
79a90776d2 | |||
fee8367e4a | |||
d6b35a45a9 | |||
2c6d3ab678 | |||
57e374f089 | |||
4b94a2be22 | |||
04cec203e3 | |||
b34235a2eb | |||
c07dad40c9 | |||
581d46112a | |||
18e84a915a | |||
a027f4ea4b | |||
a1a8608fce | |||
1b5a2cf325 | |||
2f8a2fad29 | |||
79cad4c0b6 | |||
5bb6a05d7a | |||
0913090091 | |||
c5ed6fab1f | |||
84a0df0776 | |||
316ddc19e2 | |||
ac431c17f4 | |||
f1f9559345 | |||
eb010b33a2 | |||
02fab35860 | |||
71c8a2d6bc | |||
740f622a03 | |||
4d7b919703 | |||
a33623b553 | |||
daec1377a9 | |||
0bf9f99834 | |||
ef439454c7 | |||
8ceb995670 | |||
6ff81cd658 | |||
3b5cb1d54b | |||
2871ad0f3b | |||
8926ac9c6b | |||
2bc5186aa3 | |||
ad6c40022e | |||
f547143533 | |||
5143a10288 | |||
3e4a201eae | |||
fd467923b9 | |||
3d95f774c8 | |||
128ad36b06 | |||
ab8f971656 | |||
bf0438bd46 | |||
53309357df | |||
5d0c79ec8a | |||
98ac359545 | |||
3157770deb | |||
6a0ed670fd | |||
04ca6418f9 | |||
90ea4d03ed | |||
86ce842ff3 | |||
198f8d5e99 | |||
efacb6fda0 | |||
28fca5d58c | |||
e2eec91e40 | |||
2fff595dbc | |||
52ea334923 | |||
440b486603 | |||
08d33d0203 | |||
bf82a15db7 | |||
ed500956c3 | |||
95d9b5810b | |||
a218df7918 | |||
a2b0c06663 | |||
ea058d61a4 | |||
02d8f6a646 | |||
0126abfd6e | |||
72ea9b9e06 | |||
e28bb2266b | |||
8bcd17be05 | |||
f60100b8ca | |||
b9fa792e08 | |||
acdfde3598 | |||
3b28d1486e | |||
4796acef66 | |||
255edfa5e1 | |||
fed0cdf3cb | |||
2446e978df | |||
32441a7ae5 | |||
9457c541a5 | |||
11ad8fa732 | |||
ff2db09f55 | |||
476610dfae | |||
b58ba3aa47 | |||
d5f8d9380f | |||
30b9dc6a01 | |||
7f194771f7 | |||
e48607a0c0 | |||
0ba4520162 | |||
7de7ac55d2 | |||
0620fbbb94 | |||
805e2ccb07 | |||
20497c448c | |||
bc62878f98 | |||
1deefd940f | |||
1e50ce9284 | |||
ebfeab8fde | |||
07b52c9fb6 | |||
ad5d6448f2 | |||
87ade2a279 | |||
d4be1bfb81 | |||
57c1f52d2e | |||
c31f095edf |
49
build_files/cmake/Modules/Findmsgpack.cmake
Normal file
49
build_files/cmake/Modules/Findmsgpack.cmake
Normal file
@@ -0,0 +1,49 @@
|
||||
# - Find MessagePack (msgpack) library
|
||||
# Find the native MessagePack includes and library
|
||||
# This module defines
|
||||
# MSGPACK_INCLUDE_DIRS, where to find spnav.h, Set when
|
||||
# MSGPACK_INCLUDE_DIR is found.
|
||||
# MSGPACK_ROOT_DIR, The base directory to search for msgpack.
|
||||
# This can also be an environment variable.
|
||||
# MSGPACK_FOUND, If false, do not try to use msgpack.
|
||||
#
|
||||
#=============================================================================
|
||||
# Copyright 2021 Blender Foundation.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD 3-Clause License,
|
||||
# see accompanying file BSD-3-Clause-license.txt for details.
|
||||
#=============================================================================
|
||||
|
||||
# If MSGPACK_ROOT_DIR was defined in the environment, use it.
|
||||
IF(NOT MSGPACK_ROOT_DIR AND NOT $ENV{MSGPACK_ROOT_DIR} STREQUAL "")
|
||||
SET(MSGPACK_ROOT_DIR $ENV{MSGPACK_ROOT_DIR})
|
||||
ENDIF()
|
||||
|
||||
SET(_msgpack_SEARCH_DIRS
|
||||
${MSGPACK_ROOT_DIR}
|
||||
)
|
||||
|
||||
FIND_PATH(MSGPACK_INCLUDE_DIR
|
||||
NAMES
|
||||
msgpack/include/msgpack.hpp
|
||||
HINTS
|
||||
${_msgpack_SEARCH_DIRS}
|
||||
PATH_SUFFIXES
|
||||
include/msgpack
|
||||
)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set MSGPACK_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Msgpack DEFAULT_MSG
|
||||
MSGPACK_INCLUDE_DIR)
|
||||
|
||||
IF(MSGPACK_FOUND)
|
||||
SET(MSGPACK_INCLUDE_DIRS ${MSGPACK_INCLUDE_DIR})
|
||||
ENDIF()
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
MSGPACK_INCLUDE_DIR
|
||||
)
|
||||
|
||||
UNSET(_msgpack_SEARCH_DIRS)
|
22
extern/msgpack/include/msgpack.hpp
vendored
Normal file
22
extern/msgpack/include/msgpack.hpp
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// MessagePack for C++
|
||||
//
|
||||
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#include "msgpack/object.hpp"
|
||||
#include "msgpack/iterator.hpp"
|
||||
#include "msgpack/zone.hpp"
|
||||
#include "msgpack/pack.hpp"
|
||||
#include "msgpack/null_visitor.hpp"
|
||||
#include "msgpack/parse.hpp"
|
||||
#include "msgpack/unpack.hpp"
|
||||
#include "msgpack/x3_parse.hpp"
|
||||
#include "msgpack/x3_unpack.hpp"
|
||||
#include "msgpack/sbuffer.hpp"
|
||||
#include "msgpack/vrefbuffer.hpp"
|
||||
#include "msgpack/version.hpp"
|
||||
#include "msgpack/type.hpp"
|
19
extern/msgpack/include/msgpack/adaptor/adaptor_base.hpp
vendored
Normal file
19
extern/msgpack/include/msgpack/adaptor/adaptor_base.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015-2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_ADAPTOR_BASE_HPP
|
||||
#define MSGPACK_ADAPTOR_BASE_HPP
|
||||
|
||||
#include "msgpack/adaptor/adaptor_base_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/adaptor_base.hpp"
|
||||
#include "msgpack/v2/adaptor/adaptor_base.hpp"
|
||||
#include "msgpack/v3/adaptor/adaptor_base.hpp"
|
||||
|
||||
#endif // MSGPACK_ADAPTOR_BASE_HPP
|
17
extern/msgpack/include/msgpack/adaptor/adaptor_base_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/adaptor_base_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_ADAPTOR_BASE_DECL_HPP
|
||||
#define MSGPACK_ADAPTOR_BASE_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/adaptor_base_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/adaptor_base_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/adaptor_base_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_ADAPTOR_BASE_DECL_HPP
|
17
extern/msgpack/include/msgpack/adaptor/array_ref.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/array_ref.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_ARRAY_REF_HPP
|
||||
#define MSGPACK_TYPE_ARRAY_REF_HPP
|
||||
|
||||
#include "msgpack/adaptor/array_ref_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/array_ref.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_ARRAY_REFL_HPP
|
17
extern/msgpack/include/msgpack/adaptor/array_ref_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/array_ref_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_ARRAY_REF_DECL_HPP
|
||||
#define MSGPACK_TYPE_ARRAY_REF_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/array_ref_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/array_ref_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/array_ref_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_ARRAY_REF_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/bool.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/bool.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_BOOL_HPP
|
||||
#define MSGPACK_TYPE_BOOL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/bool.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_BOOL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/boost/fusion.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/boost/fusion.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_BOOST_FUSION_HPP
|
||||
#define MSGPACK_TYPE_BOOST_FUSION_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/boost/fusion.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_BOOST_FUSION_HPP
|
18
extern/msgpack/include/msgpack/adaptor/boost/msgpack_variant.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/adaptor/boost/msgpack_variant.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015-2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_BOOST_MSGPACK_VARIANT_HPP
|
||||
#define MSGPACK_TYPE_BOOST_MSGPACK_VARIANT_HPP
|
||||
|
||||
#include "msgpack/adaptor/boost/msgpack_variant_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/boost/msgpack_variant.hpp"
|
||||
//#include "msgpack/v2/adaptor/boost/msgpack_variant.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_BOOST_MSGPACK_VARIANT_HPP
|
17
extern/msgpack/include/msgpack/adaptor/boost/msgpack_variant_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/boost/msgpack_variant_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_BOOST_MSGPACK_VARIANT_DECL_HPP
|
||||
#define MSGPACK_TYPE_BOOST_MSGPACK_VARIANT_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/boost/msgpack_variant_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/boost/msgpack_variant_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/boost/msgpack_variant_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_BOOST_MSGPACK_VARIANT_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/boost/optional.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/boost/optional.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_BOOST_OPTIONAL_HPP
|
||||
#define MSGPACK_TYPE_BOOST_OPTIONAL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/boost/optional.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_BOOST_OPTIONAL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/boost/string_ref.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/boost/string_ref.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_BOOST_STRING_REF_HPP
|
||||
#define MSGPACK_TYPE_BOOST_STRING_REF_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/boost/string_ref.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_BOOST_STRING_REF_HPP
|
15
extern/msgpack/include/msgpack/adaptor/boost/string_view.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/boost/string_view.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2017 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_BOOST_STRING_VIEW_HPP
|
||||
#define MSGPACK_TYPE_BOOST_STRING_VIEW_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/boost/string_view.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_BOOST_STRING_VIEW_HPP
|
15
extern/msgpack/include/msgpack/adaptor/carray.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/carray.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_CARRAY_HPP
|
||||
#define MSGPACK_TYPE_CARRAY_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/carray.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CARRAY_HPP
|
15
extern/msgpack/include/msgpack/adaptor/char_ptr.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/char_ptr.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_CHAR_PTR_HPP
|
||||
#define MSGPACK_TYPE_CHAR_PTR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/char_ptr.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CHAR_PTR_HPP
|
17
extern/msgpack/include/msgpack/adaptor/check_container_size.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/check_container_size.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015-2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_CHECK_CONTAINER_SIZE_HPP
|
||||
#define MSGPACK_CHECK_CONTAINER_SIZE_HPP
|
||||
|
||||
#include "msgpack/adaptor/check_container_size_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/check_container_size.hpp"
|
||||
|
||||
#endif // MSGPACK_CHECK_CONTAINER_SIZE_HPP
|
17
extern/msgpack/include/msgpack/adaptor/check_container_size_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/check_container_size_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_CHECK_CONTAINER_SIZE_DECL_HPP
|
||||
#define MSGPACK_CHECK_CONTAINER_SIZE_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/check_container_size_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/check_container_size_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/check_container_size_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_CHECK_CONTAINER_SIZE_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/complex.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/complex.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2020 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_COMPLEX_HPP
|
||||
#define MSGPACK_TYPE_COMPLEX_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/complex.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_COMPLEX_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/array.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/array.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_ARRAY_HPP
|
||||
#define MSGPACK_TYPE_CPP11_ARRAY_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/array.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_ARRAY_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/array_char.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/array_char.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_ARRAY_CHAR_HPP
|
||||
#define MSGPACK_TYPE_CPP11_ARRAY_CHAR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/array_char.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_ARRAY_CHAR_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/array_unsigned_char.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/array_unsigned_char.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_ARRAY_UNSIGNED_CHAR_HPP
|
||||
#define MSGPACK_TYPE_CPP11_ARRAY_UNSIGNED_CHAR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/array_unsigned_char.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_ARRAY_UNSIGNED_CHAR_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/chrono.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/chrono.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2017 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_CHRONO_HPP
|
||||
#define MSGPACK_TYPE_CPP11_CHRONO_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/chrono.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_CHRONO_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/forward_list.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/forward_list.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_FORWARD_LIST_HPP
|
||||
#define MSGPACK_TYPE_CPP11_FORWARD_LIST_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/forward_list.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_FORWARD_LIST_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/reference_wrapper.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/reference_wrapper.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_REFERENCE_WRAPPER_HPP
|
||||
#define MSGPACK_TYPE_CPP11_REFERENCE_WRAPPER_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/reference_wrapper.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_REFERENCE_WRAPPER_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/shared_ptr.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/shared_ptr.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_SHARED_PTR_HPP
|
||||
#define MSGPACK_TYPE_CPP11_SHARED_PTR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/shared_ptr.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_SHARED_PTR_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/timespec.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/timespec.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2019 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_TIMESPEC_HPP
|
||||
#define MSGPACK_TYPE_CPP11_TIMESPEC_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/timespec.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_TIMESPEC_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/tuple.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/tuple.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_TUPLE_HPP
|
||||
#define MSGPACK_TYPE_CPP11_TUPLE_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/tuple.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_TUPLE_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/unique_ptr.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/unique_ptr.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_UNIQUE_PTR_HPP
|
||||
#define MSGPACK_TYPE_CPP11_UNIQUE_PTR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/unique_ptr.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_UNIQUE_PTR_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/unordered_map.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/unordered_map.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_UNORDERED_MAP_HPP
|
||||
#define MSGPACK_TYPE_CPP11_UNORDERED_MAP_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/unordered_map.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_UNORDERED_MAP_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp11/unordered_set.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp11/unordered_set.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP11_UNORDERED_SET_HPP
|
||||
#define MSGPACK_TYPE_CPP11_UNORDERED_SET_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp11/unordered_set.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP11_UNORDERED_SET_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp17/byte.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp17/byte.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP17_BYTE_HPP
|
||||
#define MSGPACK_TYPE_CPP17_BYTE_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp17/byte.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP17_BYTE_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp17/carray_byte.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp17/carray_byte.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP17_CARRAY_BYTE_HPP
|
||||
#define MSGPACK_TYPE_CPP17_CARRAY_BYTE_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp17/carray_byte.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP17_CARRAY_BYTE_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp17/optional.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp17/optional.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2017 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP17_OPTIONAL_HPP
|
||||
#define MSGPACK_TYPE_CPP17_OPTIONAL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp17/optional.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP17_OPTIONAL_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp17/string_view.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp17/string_view.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2017 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP17_STRING_VIEW_HPP
|
||||
#define MSGPACK_TYPE_CPP17_STRING_VIEW_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp17/string_view.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP17_STRING_VIEW_HPP
|
16
extern/msgpack/include/msgpack/adaptor/cpp17/vector_byte.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/adaptor/cpp17/vector_byte.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_TYPE_CPP17_VECTOR_BYTE_HPP
|
||||
#define MSGPACK_TYPE_CPP17_VECTOR_BYTE_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/cpp17/vector_byte.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_CPP17_VECTOR_BYTE_HPP
|
17
extern/msgpack/include/msgpack/adaptor/define.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/define.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_DEFINE_HPP
|
||||
#define MSGPACK_DEFINE_HPP
|
||||
|
||||
#include "msgpack/adaptor/define_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/define.hpp"
|
||||
|
||||
#endif // MSGPACK_DEFINE_HPP
|
144
extern/msgpack/include/msgpack/adaptor/define_decl.hpp
vendored
Normal file
144
extern/msgpack/include/msgpack/adaptor/define_decl.hpp
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_DEFINE_DECL_HPP
|
||||
#define MSGPACK_DEFINE_DECL_HPP
|
||||
|
||||
// BOOST_PP_VARIADICS is defined in boost/preprocessor/config/config.hpp
|
||||
// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html
|
||||
// However, supporting compiler detection is not complete. msgpack-c requires
|
||||
// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly.
|
||||
#if !defined(BOOST_PP_VARIADICS)
|
||||
#define BOOST_PP_VARIADICS
|
||||
#endif
|
||||
|
||||
#include <boost/preprocessor.hpp>
|
||||
|
||||
#include "msgpack/versioning.hpp"
|
||||
|
||||
// for MSGPACK_ADD_ENUM
|
||||
#include "msgpack/adaptor/int.hpp"
|
||||
|
||||
#define MSGPACK_DEFINE_ARRAY(...) \
|
||||
template <typename Packer> \
|
||||
void msgpack_pack(Packer& msgpack_pk) const \
|
||||
{ \
|
||||
msgpack::type::make_define_array(__VA_ARGS__).msgpack_pack(msgpack_pk); \
|
||||
} \
|
||||
void msgpack_unpack(msgpack::object const& msgpack_o) \
|
||||
{ \
|
||||
msgpack::type::make_define_array(__VA_ARGS__).msgpack_unpack(msgpack_o); \
|
||||
}\
|
||||
template <typename MSGPACK_OBJECT> \
|
||||
void msgpack_object(MSGPACK_OBJECT* msgpack_o, msgpack::zone& msgpack_z) const \
|
||||
{ \
|
||||
msgpack::type::make_define_array(__VA_ARGS__).msgpack_object(msgpack_o, msgpack_z); \
|
||||
}
|
||||
|
||||
#define MSGPACK_BASE_ARRAY(base) (*const_cast<base *>(static_cast<base const*>(this)))
|
||||
#define MSGPACK_NVP(name, value) (name) (value)
|
||||
|
||||
#define MSGPACK_DEFINE_MAP_EACH_PROC(r, data, elem) \
|
||||
BOOST_PP_IF( \
|
||||
BOOST_PP_IS_BEGIN_PARENS(elem), \
|
||||
elem, \
|
||||
(BOOST_PP_STRINGIZE(elem))(elem) \
|
||||
)
|
||||
|
||||
#define MSGPACK_DEFINE_MAP_IMPL(...) \
|
||||
BOOST_PP_SEQ_TO_TUPLE( \
|
||||
BOOST_PP_SEQ_FOR_EACH( \
|
||||
MSGPACK_DEFINE_MAP_EACH_PROC, \
|
||||
0, \
|
||||
BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__) \
|
||||
) \
|
||||
)
|
||||
|
||||
#define MSGPACK_DEFINE_MAP(...) \
|
||||
template <typename Packer> \
|
||||
void msgpack_pack(Packer& msgpack_pk) const \
|
||||
{ \
|
||||
msgpack::type::make_define_map \
|
||||
MSGPACK_DEFINE_MAP_IMPL(__VA_ARGS__) \
|
||||
.msgpack_pack(msgpack_pk); \
|
||||
} \
|
||||
void msgpack_unpack(msgpack::object const& msgpack_o) \
|
||||
{ \
|
||||
msgpack::type::make_define_map \
|
||||
MSGPACK_DEFINE_MAP_IMPL(__VA_ARGS__) \
|
||||
.msgpack_unpack(msgpack_o); \
|
||||
}\
|
||||
template <typename MSGPACK_OBJECT> \
|
||||
void msgpack_object(MSGPACK_OBJECT* msgpack_o, msgpack::zone& msgpack_z) const \
|
||||
{ \
|
||||
msgpack::type::make_define_map \
|
||||
MSGPACK_DEFINE_MAP_IMPL(__VA_ARGS__) \
|
||||
.msgpack_object(msgpack_o, msgpack_z); \
|
||||
}
|
||||
|
||||
#define MSGPACK_BASE_MAP(base) \
|
||||
(BOOST_PP_STRINGIZE(base))(*const_cast<base *>(static_cast<base const*>(this)))
|
||||
|
||||
// MSGPACK_ADD_ENUM must be used in the global namespace.
|
||||
#define MSGPACK_ADD_ENUM(enum_name) \
|
||||
namespace msgpack { \
|
||||
/** @cond */ \
|
||||
MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) { \
|
||||
/** @endcond */ \
|
||||
namespace adaptor { \
|
||||
template<> \
|
||||
struct convert<enum_name> { \
|
||||
msgpack::object const& operator()(msgpack::object const& msgpack_o, enum_name& msgpack_v) const { \
|
||||
msgpack::underlying_type<enum_name>::type tmp; \
|
||||
msgpack::operator>>(msgpack_o, tmp); \
|
||||
msgpack_v = static_cast<enum_name>(tmp); \
|
||||
return msgpack_o; \
|
||||
} \
|
||||
}; \
|
||||
template<> \
|
||||
struct object<enum_name> { \
|
||||
void operator()(msgpack::object& msgpack_o, const enum_name& msgpack_v) const { \
|
||||
msgpack::underlying_type<enum_name>::type tmp = static_cast<msgpack::underlying_type<enum_name>::type>(msgpack_v); \
|
||||
msgpack::operator<<(msgpack_o, tmp); \
|
||||
} \
|
||||
}; \
|
||||
template<> \
|
||||
struct object_with_zone<enum_name> { \
|
||||
void operator()(msgpack::object::with_zone& msgpack_o, const enum_name& msgpack_v) const { \
|
||||
msgpack::underlying_type<enum_name>::type tmp = static_cast<msgpack::underlying_type<enum_name>::type>(msgpack_v); \
|
||||
msgpack::operator<<(msgpack_o, tmp); \
|
||||
} \
|
||||
}; \
|
||||
template <> \
|
||||
struct pack<enum_name> { \
|
||||
template <typename Stream> \
|
||||
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& msgpack_o, const enum_name& msgpack_v) const { \
|
||||
return msgpack::operator<<(msgpack_o, static_cast<msgpack::underlying_type<enum_name>::type>(msgpack_v)); \
|
||||
} \
|
||||
}; \
|
||||
} \
|
||||
/** @cond */ \
|
||||
} \
|
||||
/** @endcond */ \
|
||||
}
|
||||
|
||||
#if defined(MSGPACK_USE_DEFINE_MAP)
|
||||
#define MSGPACK_DEFINE MSGPACK_DEFINE_MAP
|
||||
#define MSGPACK_BASE MSGPACK_BASE_MAP
|
||||
#else // defined(MSGPACK_USE_DEFINE_MAP)
|
||||
#define MSGPACK_DEFINE MSGPACK_DEFINE_ARRAY
|
||||
#define MSGPACK_BASE MSGPACK_BASE_ARRAY
|
||||
#endif // defined(MSGPACK_USE_DEFINE_MAP)
|
||||
|
||||
|
||||
#include "msgpack/v1/adaptor/define_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/define_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/define_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_DEFINE_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/deque.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/deque.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_DEQUE_HPP
|
||||
#define MSGPACK_TYPE_DEQUE_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/deque.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_DEQUE_HPP
|
17
extern/msgpack/include/msgpack/adaptor/ext.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/ext.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_EXT_HPP
|
||||
#define MSGPACK_TYPE_EXT_HPP
|
||||
|
||||
#include "msgpack/adaptor/ext_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/ext.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_EXT_HPP
|
17
extern/msgpack/include/msgpack/adaptor/ext_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/ext_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_EXT_DECL_HPP
|
||||
#define MSGPACK_TYPE_EXT_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/ext_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/ext_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/ext_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_EXT_DECL_HPP
|
17
extern/msgpack/include/msgpack/adaptor/fixint.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/fixint.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_FIXINT_HPP
|
||||
#define MSGPACK_TYPE_FIXINT_HPP
|
||||
|
||||
#include "msgpack/adaptor/fixint_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/fixint.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_FIXINT_HPP
|
17
extern/msgpack/include/msgpack/adaptor/fixint_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/fixint_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_FIXINT_DECL_HPP
|
||||
#define MSGPACK_TYPE_FIXINT_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/fixint_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/fixint_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/fixint_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_FIXINT_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/float.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/float.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_FLOAT_HPP
|
||||
#define MSGPACK_TYPE_FLOAT_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/float.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_FLOAT_HPP
|
17
extern/msgpack/include/msgpack/adaptor/int.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/int.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_INT_HPP
|
||||
#define MSGPACK_TYPE_INT_HPP
|
||||
|
||||
#include "msgpack/adaptor/int_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/int.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_INT_HPP
|
17
extern/msgpack/include/msgpack/adaptor/int_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/int_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_INT_DECL_HPP
|
||||
#define MSGPACK_TYPE_INT_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/int_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/int_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/int_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_INT_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/list.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/list.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_LIST_HPP
|
||||
#define MSGPACK_TYPE_LIST_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/list.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_LIST_HPP
|
18
extern/msgpack/include/msgpack/adaptor/map.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/adaptor/map.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_MAP_HPP
|
||||
#define MSGPACK_TYPE_MAP_HPP
|
||||
|
||||
#include "msgpack/adaptor/map_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/map.hpp"
|
||||
|
||||
|
||||
#endif // MSGPACK_TYPE_MAP_HPP
|
17
extern/msgpack/include/msgpack/adaptor/map_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/map_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_MAP_DECL_HPP
|
||||
#define MSGPACK_TYPE_MAP_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/map_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/map_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/map_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_MAP_DECL_HPP
|
17
extern/msgpack/include/msgpack/adaptor/msgpack_tuple.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/msgpack_tuple.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2014 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_MSGPACK_TUPLE_HPP
|
||||
#define MSGPACK_MSGPACK_TUPLE_HPP
|
||||
|
||||
#include "msgpack/adaptor/msgpack_tuple_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/msgpack_tuple.hpp"
|
||||
|
||||
#endif // MSGPACK_MSGPACK_TUPLE_HPP
|
17
extern/msgpack/include/msgpack/adaptor/msgpack_tuple_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/msgpack_tuple_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_MSGPACK_TUPLE_DECL_HPP
|
||||
#define MSGPACK_MSGPACK_TUPLE_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/msgpack_tuple_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/msgpack_tuple_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/msgpack_tuple_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_MSGPACK_TUPLE_DECL_HPP
|
17
extern/msgpack/include/msgpack/adaptor/nil.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/nil.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_NIL_HPP
|
||||
#define MSGPACK_TYPE_NIL_HPP
|
||||
|
||||
#include "msgpack/adaptor/nil_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/nil.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_NIL_HPP
|
17
extern/msgpack/include/msgpack/adaptor/nil_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/nil_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_NIL_DECL_HPP
|
||||
#define MSGPACK_TYPE_NIL_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/nil_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/nil_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/nil_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_NIL_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/pair.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/pair.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_PAIR_HPP
|
||||
#define MSGPACK_TYPE_PAIR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/pair.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_PAIR_HPP
|
17
extern/msgpack/include/msgpack/adaptor/raw.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/raw.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_RAW_HPP
|
||||
#define MSGPACK_TYPE_RAW_HPP
|
||||
|
||||
#include "msgpack/adaptor/raw_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/raw.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_RAW_HPP
|
17
extern/msgpack/include/msgpack/adaptor/raw_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/raw_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_RAW_DECL_HPP
|
||||
#define MSGPACK_TYPE_RAW_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/raw_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/raw_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/raw_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_RAW_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/set.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/set.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_SET_HPP
|
||||
#define MSGPACK_TYPE_SET_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/set.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_SET_HPP
|
17
extern/msgpack/include/msgpack/adaptor/size_equal_only.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/size_equal_only.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_SIZE_EQUAL_ONLY_HPP
|
||||
#define MSGPACK_TYPE_SIZE_EQUAL_ONLY_HPP
|
||||
|
||||
#include "msgpack/adaptor/size_equal_only_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/size_equal_only.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_SIZE_EQUAL_ONLYL_HPP
|
17
extern/msgpack/include/msgpack/adaptor/size_equal_only_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/size_equal_only_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_SIZE_EQUAL_ONLY_DECL_HPP
|
||||
#define MSGPACK_TYPE_SIZE_EQUAL_ONLY_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/size_equal_only_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/size_equal_only_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/size_equal_only_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_SIZE_EQUAL_ONLY_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/string.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/string.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_STRING_HPP
|
||||
#define MSGPACK_TYPE_STRING_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/string.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_STRING_HPP
|
171
extern/msgpack/include/msgpack/adaptor/tr1/unordered_map.hpp
vendored
Normal file
171
extern/msgpack/include/msgpack/adaptor/tr1/unordered_map.hpp
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2015 FURUHASHI Sadayuki
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_TR1_UNORDERED_MAP_HPP
|
||||
#define MSGPACK_TYPE_TR1_UNORDERED_MAP_HPP
|
||||
|
||||
#include "msgpack/versioning.hpp"
|
||||
#include "msgpack/adaptor/adaptor_base.hpp"
|
||||
#include "msgpack/adaptor/check_container_size.hpp"
|
||||
|
||||
#if defined(_LIBCPP_VERSION) || (_MSC_VER >= 1700)
|
||||
|
||||
#define MSGPACK_HAS_STD_UNORDERED_MAP
|
||||
#include <unordered_map>
|
||||
#define MSGPACK_STD_TR1 std
|
||||
|
||||
#else // defined(_LIBCPP_VERSION) || (_MSC_VER >= 1700)
|
||||
|
||||
#if __GNUC__ >= 4
|
||||
|
||||
#define MSGPACK_HAS_STD_TR1_UNORDERED_MAP
|
||||
|
||||
#include <tr1/unordered_map>
|
||||
#define MSGPACK_STD_TR1 std::tr1
|
||||
|
||||
#endif // __GNUC__ >= 4
|
||||
|
||||
#endif // defined(_LIBCPP_VERSION) || (_MSC_VER >= 1700)
|
||||
|
||||
#if defined(MSGPACK_STD_TR1)
|
||||
|
||||
namespace msgpack {
|
||||
|
||||
/// @cond
|
||||
MSGPACK_API_VERSION_NAMESPACE(v1) {
|
||||
/// @endcond
|
||||
|
||||
namespace adaptor {
|
||||
|
||||
template <typename K, typename V, typename Hash, typename Pred, typename Alloc>
|
||||
struct convert<MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc> > {
|
||||
msgpack::object const& operator()(msgpack::object const& o, MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc>& v) const {
|
||||
if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); }
|
||||
msgpack::object_kv* p(o.via.map.ptr);
|
||||
msgpack::object_kv* const pend(o.via.map.ptr + o.via.map.size);
|
||||
MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc> tmp;
|
||||
for(; p != pend; ++p) {
|
||||
K key;
|
||||
p->key.convert(key);
|
||||
p->val.convert(tmp[key]);
|
||||
}
|
||||
tmp.swap(v);
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename K, typename V, typename Hash, typename Pred, typename Alloc>
|
||||
struct pack<MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc> > {
|
||||
template <typename Stream>
|
||||
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& o, const MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc>& v) const {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
o.pack_map(size);
|
||||
for(typename MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc>::const_iterator it(v.begin()), it_end(v.end());
|
||||
it != it_end; ++it) {
|
||||
o.pack(it->first);
|
||||
o.pack(it->second);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename K, typename V, typename Hash, typename Pred, typename Alloc>
|
||||
struct object_with_zone<MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc> > {
|
||||
void operator()(msgpack::object::with_zone& o, const MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc>& v) const {
|
||||
o.type = msgpack::type::MAP;
|
||||
if(v.empty()) {
|
||||
o.via.map.ptr = MSGPACK_NULLPTR;
|
||||
o.via.map.size = 0;
|
||||
} else {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
msgpack::object_kv* p = static_cast<msgpack::object_kv*>(o.zone.allocate_align(sizeof(msgpack::object_kv)*size, MSGPACK_ZONE_ALIGNOF(msgpack::object_kv)));
|
||||
msgpack::object_kv* const pend = p + size;
|
||||
o.via.map.ptr = p;
|
||||
o.via.map.size = size;
|
||||
typename MSGPACK_STD_TR1::unordered_map<K, V, Hash, Pred, Alloc>::const_iterator it(v.begin());
|
||||
do {
|
||||
p->key = msgpack::object(it->first, o.zone);
|
||||
p->val = msgpack::object(it->second, o.zone);
|
||||
++p;
|
||||
++it;
|
||||
} while(p < pend);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
template <typename K, typename V, typename Hash, typename Pred, typename Alloc>
|
||||
struct convert<MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc> > {
|
||||
msgpack::object const& operator()(msgpack::object const& o, MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc>& v) const {
|
||||
if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); }
|
||||
msgpack::object_kv* p(o.via.map.ptr);
|
||||
msgpack::object_kv* const pend(o.via.map.ptr + o.via.map.size);
|
||||
MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc> tmp;
|
||||
for(; p != pend; ++p) {
|
||||
std::pair<K, V> value;
|
||||
p->key.convert(value.first);
|
||||
p->val.convert(value.second);
|
||||
tmp.insert(value);
|
||||
}
|
||||
tmp.swap(v);
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename K, typename V, typename Hash, typename Pred, typename Alloc>
|
||||
struct pack<MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc> > {
|
||||
template <typename Stream>
|
||||
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& o, const MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc>& v) const {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
o.pack_map(size);
|
||||
for(typename MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc>::const_iterator it(v.begin()), it_end(v.end());
|
||||
it != it_end; ++it) {
|
||||
o.pack(it->first);
|
||||
o.pack(it->second);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename K, typename V, typename Hash, typename Pred, typename Alloc>
|
||||
struct object_with_zone<MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc> > {
|
||||
void operator()(msgpack::object::with_zone& o, const MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc>& v) const {
|
||||
o.type = msgpack::type::MAP;
|
||||
if(v.empty()) {
|
||||
o.via.map.ptr = MSGPACK_NULLPTR;
|
||||
o.via.map.size = 0;
|
||||
} else {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
msgpack::object_kv* p = static_cast<msgpack::object_kv*>(o.zone.allocate_align(sizeof(msgpack::object_kv)*size, MSGPACK_ZONE_ALIGNOF(msgpack::object_kv)));
|
||||
msgpack::object_kv* const pend = p + size;
|
||||
o.via.map.ptr = p;
|
||||
o.via.map.size = size;
|
||||
typename MSGPACK_STD_TR1::unordered_multimap<K, V, Hash, Pred, Alloc>::const_iterator it(v.begin());
|
||||
do {
|
||||
p->key = msgpack::object(it->first, o.zone);
|
||||
p->val = msgpack::object(it->second, o.zone);
|
||||
++p;
|
||||
++it;
|
||||
} while(p < pend);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace adaptor
|
||||
|
||||
/// @cond
|
||||
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
||||
/// @endcond
|
||||
|
||||
} // namespace msgpack
|
||||
|
||||
#undef MSGPACK_STD_TR1
|
||||
|
||||
#endif // MSGPACK_STD_TR1
|
||||
|
||||
#endif // MSGPACK_TYPE_TR1_UNORDERED_MAP_HPP
|
165
extern/msgpack/include/msgpack/adaptor/tr1/unordered_set.hpp
vendored
Normal file
165
extern/msgpack/include/msgpack/adaptor/tr1/unordered_set.hpp
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2015 FURUHASHI Sadayuki
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_TR1_UNORDERED_SET_HPP
|
||||
#define MSGPACK_TYPE_TR1_UNORDERED_SET_HPP
|
||||
|
||||
#include "msgpack/versioning.hpp"
|
||||
#include "msgpack/adaptor/adaptor_base.hpp"
|
||||
#include "msgpack/adaptor/check_container_size.hpp"
|
||||
|
||||
#if defined(_LIBCPP_VERSION) || (_MSC_VER >= 1700)
|
||||
|
||||
#define MSGPACK_HAS_STD_UNORDERED_SET
|
||||
#include <unordered_set>
|
||||
#define MSGPACK_STD_TR1 std
|
||||
|
||||
#else // defined(_LIBCPP_VERSION) || (_MSC_VER >= 1700)
|
||||
|
||||
#if __GNUC__ >= 4
|
||||
|
||||
#define MSGPACK_HAS_STD_TR1_UNORDERED_SET
|
||||
|
||||
#include <tr1/unordered_set>
|
||||
#define MSGPACK_STD_TR1 std::tr1
|
||||
|
||||
#endif // __GNUC__ >= 4
|
||||
|
||||
#endif // defined(_LIBCPP_VERSION) || (_MSC_VER >= 1700)
|
||||
|
||||
#if defined(MSGPACK_STD_TR1)
|
||||
|
||||
namespace msgpack {
|
||||
|
||||
/// @cond
|
||||
MSGPACK_API_VERSION_NAMESPACE(v1) {
|
||||
/// @endcond
|
||||
|
||||
namespace adaptor {
|
||||
|
||||
template <typename T, typename Hash, typename Compare, typename Alloc>
|
||||
struct convert<MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc> > {
|
||||
msgpack::object const& operator()(msgpack::object const& o, MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc>& v) const {
|
||||
if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); }
|
||||
msgpack::object* p = o.via.array.ptr + o.via.array.size;
|
||||
msgpack::object* const pbegin = o.via.array.ptr;
|
||||
MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc> tmp;
|
||||
while(p > pbegin) {
|
||||
--p;
|
||||
tmp.insert(p->as<T>());
|
||||
}
|
||||
tmp.swap(v);
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T, typename Hash, typename Compare, typename Alloc>
|
||||
struct pack<MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc> > {
|
||||
template <typename Stream>
|
||||
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& o, const MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc>& v) const {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
o.pack_array(size);
|
||||
for(typename MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc>::const_iterator it(v.begin()), it_end(v.end());
|
||||
it != it_end; ++it) {
|
||||
o.pack(*it);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T, typename Hash, typename Compare, typename Alloc>
|
||||
struct object_with_zone<MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc> > {
|
||||
void operator()(msgpack::object::with_zone& o, const MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc>& v) const {
|
||||
o.type = msgpack::type::ARRAY;
|
||||
if(v.empty()) {
|
||||
o.via.array.ptr = MSGPACK_NULLPTR;
|
||||
o.via.array.size = 0;
|
||||
} else {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
msgpack::object* p = static_cast<msgpack::object*>(o.zone.allocate_align(sizeof(msgpack::object)*size, MSGPACK_ZONE_ALIGNOF(msgpack::object)));
|
||||
msgpack::object* const pend = p + size;
|
||||
o.via.array.ptr = p;
|
||||
o.via.array.size = size;
|
||||
typename MSGPACK_STD_TR1::unordered_set<T, Hash, Compare, Alloc>::const_iterator it(v.begin());
|
||||
do {
|
||||
*p = msgpack::object(*it, o.zone);
|
||||
++p;
|
||||
++it;
|
||||
} while(p < pend);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
template <typename T, typename Hash, typename Compare, typename Alloc>
|
||||
struct convert<MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc> > {
|
||||
msgpack::object const& operator()(msgpack::object const& o, MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc>& v) const {
|
||||
if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); }
|
||||
msgpack::object* p = o.via.array.ptr + o.via.array.size;
|
||||
msgpack::object* const pbegin = o.via.array.ptr;
|
||||
MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc> tmp;
|
||||
while(p > pbegin) {
|
||||
--p;
|
||||
tmp.insert(p->as<T>());
|
||||
}
|
||||
tmp.swap(v);
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T, typename Hash, typename Compare, typename Alloc>
|
||||
struct pack<MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc> > {
|
||||
template <typename Stream>
|
||||
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& o, const MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc>& v) const {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
o.pack_array(size);
|
||||
for(typename MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc>::const_iterator it(v.begin()), it_end(v.end());
|
||||
it != it_end; ++it) {
|
||||
o.pack(*it);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T, typename Hash, typename Compare, typename Alloc>
|
||||
struct object_with_zone<MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc> > {
|
||||
void operator()(msgpack::object::with_zone& o, const MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc>& v) const {
|
||||
o.type = msgpack::type::ARRAY;
|
||||
if(v.empty()) {
|
||||
o.via.array.ptr = MSGPACK_NULLPTR;
|
||||
o.via.array.size = 0;
|
||||
} else {
|
||||
uint32_t size = checked_get_container_size(v.size());
|
||||
msgpack::object* p = static_cast<msgpack::object*>(o.zone.allocate_align(sizeof(msgpack::object)*size, MSGPACK_ZONE_ALIGNOF(msgpack::object)));
|
||||
msgpack::object* const pend = p + size;
|
||||
o.via.array.ptr = p;
|
||||
o.via.array.size = size;
|
||||
typename MSGPACK_STD_TR1::unordered_multiset<T, Hash, Compare, Alloc>::const_iterator it(v.begin());
|
||||
do {
|
||||
*p = msgpack::object(*it, o.zone);
|
||||
++p;
|
||||
++it;
|
||||
} while(p < pend);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace adaptor
|
||||
|
||||
/// @cond
|
||||
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
||||
/// @endcond
|
||||
|
||||
} // namespace msgpack
|
||||
|
||||
#undef MSGPACK_STD_TR1
|
||||
|
||||
#endif // MSGPACK_STD_TR1
|
||||
|
||||
#endif // MSGPACK_TYPE_TR1_UNORDERED_SET_HPP
|
17
extern/msgpack/include/msgpack/adaptor/v4raw.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/v4raw.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_V4RAW_HPP
|
||||
#define MSGPACK_TYPE_V4RAW_HPP
|
||||
|
||||
#include "msgpack/adaptor/v4raw_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/adaptor/v4raw.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_V4RAW_HPP
|
17
extern/msgpack/include/msgpack/adaptor/v4raw_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/adaptor/v4raw_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_V4RAW_DECL_HPP
|
||||
#define MSGPACK_TYPE_V4RAW_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/v4raw_decl.hpp"
|
||||
#include "msgpack/v2/adaptor/v4raw_decl.hpp"
|
||||
#include "msgpack/v3/adaptor/v4raw_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_V4RAW_DECL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/vector.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/vector.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_VECTOR_HPP
|
||||
#define MSGPACK_TYPE_VECTOR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/vector.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_VECTOR_HPP
|
15
extern/msgpack/include/msgpack/adaptor/vector_bool.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/vector_bool.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_VECTOR_BOOL_HPP
|
||||
#define MSGPACK_TYPE_VECTOR_BOOL_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/vector_bool.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_VECTOR_BOOL_HPP
|
15
extern/msgpack/include/msgpack/adaptor/vector_char.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/vector_char.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_VECTOR_CHAR_HPP
|
||||
#define MSGPACK_TYPE_VECTOR_CHAR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/vector_char.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_VECTOR_CHAR_HPP
|
15
extern/msgpack/include/msgpack/adaptor/vector_unsigned_char.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/vector_unsigned_char.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_VECTOR_UNSIGNED_CHAR_HPP
|
||||
#define MSGPACK_TYPE_VECTOR_UNSIGNED_CHAR_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/vector_unsigned_char.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_VECTOR_UNSIGNED_CHAR_HPP
|
15
extern/msgpack/include/msgpack/adaptor/wstring.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/adaptor/wstring.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_TYPE_WSTRING_HPP
|
||||
#define MSGPACK_TYPE_WSTRING_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/wstring.hpp"
|
||||
|
||||
#endif // MSGPACK_TYPE_WSTRING_HPP
|
17
extern/msgpack/include/msgpack/cpp_config.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/cpp_config.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ C++03/C++11 Adaptation
|
||||
//
|
||||
// Copyright (C) 2013-2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_CPP_CONFIG_HPP
|
||||
#define MSGPACK_CPP_CONFIG_HPP
|
||||
|
||||
#include "msgpack/cpp_config_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/cpp_config.hpp"
|
||||
|
||||
#endif // MSGPACK_CPP_CONFIG_HPP
|
17
extern/msgpack/include/msgpack/cpp_config_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/cpp_config_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ C++03/C++11 Adaptation
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_CPP_CONFIG_DECL_HPP
|
||||
#define MSGPACK_CPP_CONFIG_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/cpp_config_decl.hpp"
|
||||
#include "msgpack/v2/cpp_config_decl.hpp"
|
||||
#include "msgpack/v3/cpp_config_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_CPP_CONFIG_DECL_HPP
|
17
extern/msgpack/include/msgpack/create_object_visitor.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/create_object_visitor.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_CREATE_OBJECT_VISITOR_HPP
|
||||
#define MSGPACK_CREATE_OBJECT_VISITOR_HPP
|
||||
|
||||
#include "msgpack/create_object_visitor_decl.hpp"
|
||||
|
||||
#include "msgpack/v2/create_object_visitor.hpp"
|
||||
|
||||
#endif // MSGPACK_CREATE_OBJECT_VISITOR_HPP
|
16
extern/msgpack/include/msgpack/create_object_visitor_decl.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/create_object_visitor_decl.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_CREATE_OBJECT_VISITOR_DECL_HPP
|
||||
#define MSGPACK_CREATE_OBJECT_VISITOR_DECL_HPP
|
||||
|
||||
#include "msgpack/v2/create_object_visitor_decl.hpp"
|
||||
#include "msgpack/v3/create_object_visitor_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_CREATE_OBJECT_VISITOR_DECL_HPP
|
17
extern/msgpack/include/msgpack/fbuffer.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/fbuffer.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ FILE* buffer adaptor
|
||||
//
|
||||
// Copyright (C) 2013 Vladimir Volodko
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_FBUFFER_HPP
|
||||
#define MSGPACK_FBUFFER_HPP
|
||||
|
||||
#include "msgpack/fbuffer_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/fbuffer.hpp"
|
||||
|
||||
#endif // MSGPACK_FBUFFER_HPP
|
17
extern/msgpack/include/msgpack/fbuffer_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/fbuffer_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ FILE* buffer adaptor
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_FBUFFER_DECL_HPP
|
||||
#define MSGPACK_FBUFFER_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/fbuffer_decl.hpp"
|
||||
#include "msgpack/v2/fbuffer_decl.hpp"
|
||||
#include "msgpack/v3/fbuffer_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_FBUFFER_DECL_HPP
|
30
extern/msgpack/include/msgpack/gcc_atomic.hpp
vendored
Normal file
30
extern/msgpack/include/msgpack/gcc_atomic.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// MessagePack for C++ old gcc workaround for atomic operation
|
||||
//
|
||||
// Copyright (C) 2008-2013 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_GCC_ATOMIC_HPP
|
||||
#define MSGPACK_GCC_ATOMIC_HPP
|
||||
|
||||
#if defined(__GNUC__) && ((__GNUC__*10 + __GNUC_MINOR__) < 41)
|
||||
|
||||
#include <bits/atomicity.h>
|
||||
|
||||
int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t* ptr)
|
||||
{
|
||||
return __gnu_cxx::__exchange_and_add(ptr, -1) - 1;
|
||||
}
|
||||
|
||||
int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t* ptr)
|
||||
{
|
||||
return __gnu_cxx::__exchange_and_add(ptr, 1) + 1;
|
||||
}
|
||||
|
||||
#endif // old gcc workaround
|
||||
|
||||
#endif /* gcc_atomic.hpp */
|
18
extern/msgpack/include/msgpack/iterator.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/iterator.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015-2016 MIZUKI Hirata
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_ITERATOR_HPP
|
||||
#define MSGPACK_ITERATOR_HPP
|
||||
|
||||
#include <msgpack/iterator_decl.hpp>
|
||||
|
||||
#include <msgpack/v1/iterator.hpp>
|
||||
|
||||
#endif // MSGPACK_ITERATOR_HPP
|
18
extern/msgpack/include/msgpack/iterator_decl.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/iterator_decl.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_ITERATOR_DECL_HPP
|
||||
#define MSGPACK_ITERATOR_DECL_HPP
|
||||
|
||||
#include <msgpack/v1/iterator_decl.hpp>
|
||||
#include <msgpack/v2/iterator_decl.hpp>
|
||||
#include <msgpack/v3/iterator_decl.hpp>
|
||||
|
||||
#endif // MSGPACK_ITERATOR_DECL_HPP
|
18
extern/msgpack/include/msgpack/meta.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/meta.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015-2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_META_HPP
|
||||
#define MSGPACK_META_HPP
|
||||
|
||||
#include "msgpack/meta_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/meta.hpp"
|
||||
|
||||
#endif // MSGPACK_META_HPP
|
18
extern/msgpack/include/msgpack/meta_decl.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/meta_decl.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015-2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_META_DECL_HPP
|
||||
#define MSGPACK_META_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/meta_decl.hpp"
|
||||
#include "msgpack/v2/meta_decl.hpp"
|
||||
#include "msgpack/v3/meta_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_META_DECL_HPP
|
17
extern/msgpack/include/msgpack/null_visitor.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/null_visitor.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_NULL_VISITOR_HPP
|
||||
#define MSGPACK_NULL_VISITOR_HPP
|
||||
|
||||
#include "msgpack/null_visitor_decl.hpp"
|
||||
|
||||
#include "msgpack/v2/null_visitor.hpp"
|
||||
|
||||
#endif // MSGPACK_NULL_VISITOR_HPP
|
16
extern/msgpack/include/msgpack/null_visitor_decl.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/null_visitor_decl.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_NULL_VISITOR_DECL_HPP
|
||||
#define MSGPACK_NULL_VISITOR_DECL_HPP
|
||||
|
||||
#include "msgpack/v2/null_visitor_decl.hpp"
|
||||
#include "msgpack/v3/null_visitor_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_NULL_VISITOR_DECL_HPP
|
18
extern/msgpack/include/msgpack/object.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/object.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_OBJECT_HPP
|
||||
#define MSGPACK_OBJECT_HPP
|
||||
|
||||
#include "msgpack/object_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/object.hpp"
|
||||
#include "msgpack/v2/object.hpp"
|
||||
|
||||
#endif // MSGPACK_OBJECT_HPP
|
18
extern/msgpack/include/msgpack/object_decl.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/object_decl.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_OBJECT_DECL_HPP
|
||||
#define MSGPACK_OBJECT_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/object_decl.hpp"
|
||||
#include "msgpack/v2/object_decl.hpp"
|
||||
#include "msgpack/v3/object_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_OBJECT_DECL_HPP
|
20
extern/msgpack/include/msgpack/object_fwd.hpp
vendored
Normal file
20
extern/msgpack/include/msgpack/object_fwd.hpp
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_OBJECT_FWD_HPP
|
||||
#define MSGPACK_OBJECT_FWD_HPP
|
||||
|
||||
#include "msgpack/object_fwd_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/object_fwd.hpp"
|
||||
#include "msgpack/v2/object_fwd.hpp"
|
||||
#include "msgpack/v3/object_fwd.hpp"
|
||||
|
||||
#endif // MSGPACK_OBJECT_FWD_HPP
|
18
extern/msgpack/include/msgpack/object_fwd_decl.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/object_fwd_decl.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#ifndef MSGPACK_OBJECT_FWD_DECL_HPP
|
||||
#define MSGPACK_OBJECT_FWD_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/object_fwd_decl.hpp"
|
||||
#include "msgpack/v2/object_fwd_decl.hpp"
|
||||
#include "msgpack/v3/object_fwd_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_OBJECT_FWD_DECL_HPP
|
17
extern/msgpack/include/msgpack/pack.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/pack.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ serializing routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_PACK_HPP
|
||||
#define MSGPACK_PACK_HPP
|
||||
|
||||
#include "msgpack/pack_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/pack.hpp"
|
||||
|
||||
#endif // MSGPACK_PACK_HPP
|
17
extern/msgpack/include/msgpack/pack_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/pack_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ serializing routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_PACK_DECL_HPP
|
||||
#define MSGPACK_PACK_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/pack_decl.hpp"
|
||||
#include "msgpack/v2/pack_decl.hpp"
|
||||
#include "msgpack/v3/pack_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_PACK_DECL_HPP
|
18
extern/msgpack/include/msgpack/parse.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/parse.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_PARSE_HPP
|
||||
#define MSGPACK_PARSE_HPP
|
||||
|
||||
#include "msgpack/parse_decl.hpp"
|
||||
|
||||
#include "msgpack/v2/parse.hpp"
|
||||
#include "msgpack/v3/parse.hpp"
|
||||
|
||||
#endif // MSGPACK_PARSE_HPP
|
16
extern/msgpack/include/msgpack/parse_decl.hpp
vendored
Normal file
16
extern/msgpack/include/msgpack/parse_decl.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2018 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_PARSE_DECL_HPP
|
||||
#define MSGPACK_PARSE_DECL_HPP
|
||||
|
||||
#include "msgpack/v2/parse_decl.hpp"
|
||||
#include "msgpack/v3/parse_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_PARSE_DECL_HPP
|
17
extern/msgpack/include/msgpack/parse_return.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/parse_return.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2017 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_PARSE_RETURN_HPP
|
||||
#define MSGPACK_PARSE_RETURN_HPP
|
||||
|
||||
#include "msgpack/v1/parse_return.hpp"
|
||||
#include "msgpack/v2/parse_return.hpp"
|
||||
#include "msgpack/v3/parse_return.hpp"
|
||||
|
||||
#endif // MSGPACK_PARSE_RETURN_HPP
|
17
extern/msgpack/include/msgpack/sbuffer.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/sbuffer.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ simple buffer implementation
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_SBUFFER_HPP
|
||||
#define MSGPACK_SBUFFER_HPP
|
||||
|
||||
#include "msgpack/sbuffer_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/sbuffer.hpp"
|
||||
|
||||
#endif // MSGPACK_SBUFFER_HPP
|
18
extern/msgpack/include/msgpack/sbuffer_decl.hpp
vendored
Normal file
18
extern/msgpack/include/msgpack/sbuffer_decl.hpp
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// MessagePack for C++ simple buffer implementation
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_SBUFFER_DECL_HPP
|
||||
#define MSGPACK_SBUFFER_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/sbuffer_decl.hpp"
|
||||
#include "msgpack/v2/sbuffer_decl.hpp"
|
||||
#include "msgpack/v3/sbuffer_decl.hpp"
|
||||
|
||||
|
||||
#endif // MSGPACK_SBUFFER_DECL_HPP
|
191
extern/msgpack/include/msgpack/sysdep.hpp
vendored
Normal file
191
extern/msgpack/include/msgpack/sysdep.hpp
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
/*
|
||||
* MessagePack system dependencies
|
||||
*
|
||||
* Copyright (C) 2008-2010 FURUHASHI Sadayuki
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#ifndef MSGPACK_SYSDEP_HPP
|
||||
#define MSGPACK_SYSDEP_HPP
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1800
|
||||
# define snprintf(buf, len, format,...) _snprintf_s(buf, len, _TRUNCATE, format, __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1600
|
||||
typedef signed __int8 int8_t;
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef signed __int16 int16_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef signed __int32 int32_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
typedef signed __int64 int64_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#elif defined(_MSC_VER) // && _MSC_VER >= 1600
|
||||
# include <stdint.h>
|
||||
#else
|
||||
# include <stdint.h>
|
||||
# include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#if !defined(MSGPACK_DLLEXPORT)
|
||||
#if defined(_MSC_VER)
|
||||
# define MSGPACK_DLLEXPORT __declspec(dllexport)
|
||||
#else /* _MSC_VER */
|
||||
# define MSGPACK_DLLEXPORT
|
||||
#endif /* _MSC_VER */
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# if defined(_KERNEL_MODE)
|
||||
# define _msgpack_atomic_counter_header <ntddk.h>
|
||||
# else
|
||||
# define _msgpack_atomic_counter_header <windows.h>
|
||||
# if !defined(WIN32_LEAN_AND_MEAN)
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif /* WIN32_LEAN_AND_MEAN */
|
||||
# endif
|
||||
typedef long _msgpack_atomic_counter_t;
|
||||
#if defined(_AMD64_) || defined(_M_X64) || defined(_M_ARM64)
|
||||
# define _msgpack_sync_decr_and_fetch(ptr) _InterlockedDecrement(ptr)
|
||||
# define _msgpack_sync_incr_and_fetch(ptr) _InterlockedIncrement(ptr)
|
||||
#else
|
||||
# define _msgpack_sync_decr_and_fetch(ptr) InterlockedDecrement(ptr)
|
||||
# define _msgpack_sync_incr_and_fetch(ptr) InterlockedIncrement(ptr)
|
||||
#endif
|
||||
#elif defined(__GNUC__) && ((__GNUC__*10 + __GNUC_MINOR__) < 41)
|
||||
|
||||
# define _msgpack_atomic_counter_header "msgpack/gcc_atomic.hpp"
|
||||
|
||||
#else
|
||||
typedef unsigned int _msgpack_atomic_counter_t;
|
||||
# define _msgpack_sync_decr_and_fetch(ptr) __sync_sub_and_fetch(ptr, 1)
|
||||
# define _msgpack_sync_incr_and_fetch(ptr) __sync_add_and_fetch(ptr, 1)
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
/* numeric_limits<T>::min,max */
|
||||
# ifdef max
|
||||
# undef max
|
||||
# endif
|
||||
# ifdef min
|
||||
# undef min
|
||||
# endif
|
||||
|
||||
#elif defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
|
||||
|
||||
#include <arpa/inet.h> /* __BYTE_ORDER */
|
||||
# if defined(linux)
|
||||
# include <byteswap.h>
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined(MSGPACK_ENDIAN_LITTLE_BYTE) && !defined(MSGPACK_ENDIAN_BIG_BYTE)
|
||||
#include <boost/predef/other/endian.h>
|
||||
#define MSGPACK_ENDIAN_LITTLE_BYTE BOOST_ENDIAN_LITTLE_BYTE
|
||||
#define MSGPACK_ENDIAN_BIG_BYTE BOOST_ENDIAN_BIG_BYTE
|
||||
#endif // !defined(MSGPACK_ENDIAN_LITTLE_BYTE) && !defined(MSGPACK_ENDIAN_BIG_BYTE)
|
||||
|
||||
#if MSGPACK_ENDIAN_LITTLE_BYTE
|
||||
|
||||
# if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
|
||||
# define _msgpack_be16(x) ntohs((uint16_t)x)
|
||||
# else
|
||||
# if defined(ntohs)
|
||||
# define _msgpack_be16(x) ntohs(x)
|
||||
# elif defined(_byteswap_ushort) || (defined(_MSC_VER) && _MSC_VER >= 1400)
|
||||
# define _msgpack_be16(x) ((uint16_t)_byteswap_ushort((unsigned short)x))
|
||||
# else
|
||||
# define _msgpack_be16(x) ( \
|
||||
((((uint16_t)x) << 8) ) | \
|
||||
((((uint16_t)x) >> 8) ) )
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
|
||||
# define _msgpack_be32(x) ntohl((uint32_t)x)
|
||||
# else
|
||||
# if defined(ntohl)
|
||||
# define _msgpack_be32(x) ntohl(x)
|
||||
# elif defined(_byteswap_ulong) || (defined(_MSC_VER) && _MSC_VER >= 1400)
|
||||
# define _msgpack_be32(x) ((uint32_t)_byteswap_ulong((unsigned long)x))
|
||||
# else
|
||||
# define _msgpack_be32(x) \
|
||||
( ((((uint32_t)x) << 24) ) | \
|
||||
((((uint32_t)x) << 8) & 0x00ff0000U ) | \
|
||||
((((uint32_t)x) >> 8) & 0x0000ff00U ) | \
|
||||
((((uint32_t)x) >> 24) ) )
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if defined(_byteswap_uint64) || (defined(_MSC_VER) && _MSC_VER >= 1400)
|
||||
# define _msgpack_be64(x) (_byteswap_uint64(x))
|
||||
# elif defined(bswap_64)
|
||||
# define _msgpack_be64(x) bswap_64(x)
|
||||
# elif defined(__DARWIN_OSSwapInt64)
|
||||
# define _msgpack_be64(x) __DARWIN_OSSwapInt64(x)
|
||||
# else
|
||||
# define _msgpack_be64(x) \
|
||||
( ((((uint64_t)x) << 56) ) | \
|
||||
((((uint64_t)x) << 40) & 0x00ff000000000000ULL ) | \
|
||||
((((uint64_t)x) << 24) & 0x0000ff0000000000ULL ) | \
|
||||
((((uint64_t)x) << 8) & 0x000000ff00000000ULL ) | \
|
||||
((((uint64_t)x) >> 8) & 0x00000000ff000000ULL ) | \
|
||||
((((uint64_t)x) >> 24) & 0x0000000000ff0000ULL ) | \
|
||||
((((uint64_t)x) >> 40) & 0x000000000000ff00ULL ) | \
|
||||
((((uint64_t)x) >> 56) ) )
|
||||
# endif
|
||||
|
||||
#elif MSGPACK_ENDIAN_BIG_BYTE
|
||||
|
||||
# define _msgpack_be16(x) (x)
|
||||
# define _msgpack_be32(x) (x)
|
||||
# define _msgpack_be64(x) (x)
|
||||
|
||||
#else
|
||||
# error msgpack-c supports only big endian and little endian
|
||||
#endif /* MSGPACK_ENDIAN_LITTLE_BYTE */
|
||||
|
||||
#define _msgpack_load16(cast, from, to) do { \
|
||||
memcpy((cast*)(to), (from), sizeof(cast)); \
|
||||
*(to) = (cast)_msgpack_be16(*(to)); \
|
||||
} while (0);
|
||||
|
||||
#define _msgpack_load32(cast, from, to) do { \
|
||||
memcpy((cast*)(to), (from), sizeof(cast)); \
|
||||
*(to) = (cast)_msgpack_be32(*(to)); \
|
||||
} while (0);
|
||||
#define _msgpack_load64(cast, from, to) do { \
|
||||
memcpy((cast*)(to), (from), sizeof(cast)); \
|
||||
*(to) = (cast)_msgpack_be64(*(to)); \
|
||||
} while (0);
|
||||
|
||||
#define _msgpack_store16(to, num) \
|
||||
do { uint16_t val = _msgpack_be16(num); memcpy(to, &val, 2); } while(0)
|
||||
#define _msgpack_store32(to, num) \
|
||||
do { uint32_t val = _msgpack_be32(num); memcpy(to, &val, 4); } while(0)
|
||||
#define _msgpack_store64(to, num) \
|
||||
do { uint64_t val = _msgpack_be64(num); memcpy(to, &val, 8); } while(0)
|
||||
|
||||
/*
|
||||
#define _msgpack_load16(cast, from) \
|
||||
({ cast val; memcpy(&val, (char*)from, 2); _msgpack_be16(val); })
|
||||
#define _msgpack_load32(cast, from) \
|
||||
({ cast val; memcpy(&val, (char*)from, 4); _msgpack_be32(val); })
|
||||
#define _msgpack_load64(cast, from) \
|
||||
({ cast val; memcpy(&val, (char*)from, 8); _msgpack_be64(val); })
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __APPLE__
|
||||
# include <TargetConditionals.h>
|
||||
#endif
|
||||
|
||||
#endif /* msgpack/sysdep.hpp */
|
67
extern/msgpack/include/msgpack/type.hpp
vendored
Normal file
67
extern/msgpack/include/msgpack/type.hpp
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
#include "cpp_config.hpp"
|
||||
#include "adaptor/array_ref.hpp"
|
||||
#include "adaptor/bool.hpp"
|
||||
#include "adaptor/carray.hpp"
|
||||
#include "adaptor/char_ptr.hpp"
|
||||
#include "adaptor/deque.hpp"
|
||||
#include "adaptor/ext.hpp"
|
||||
#include "adaptor/fixint.hpp"
|
||||
#include "adaptor/float.hpp"
|
||||
#include "adaptor/int.hpp"
|
||||
#include "adaptor/complex.hpp"
|
||||
#include "adaptor/list.hpp"
|
||||
#include "adaptor/map.hpp"
|
||||
#include "adaptor/nil.hpp"
|
||||
#include "adaptor/pair.hpp"
|
||||
#include "adaptor/raw.hpp"
|
||||
#include "adaptor/v4raw.hpp"
|
||||
#include "adaptor/set.hpp"
|
||||
#include "adaptor/size_equal_only.hpp"
|
||||
#include "adaptor/string.hpp"
|
||||
#include "adaptor/vector.hpp"
|
||||
#include "adaptor/vector_bool.hpp"
|
||||
#include "adaptor/vector_char.hpp"
|
||||
#include "adaptor/vector_unsigned_char.hpp"
|
||||
#include "adaptor/wstring.hpp"
|
||||
#include "adaptor/msgpack_tuple.hpp"
|
||||
#include "adaptor/define.hpp"
|
||||
|
||||
#if defined(MSGPACK_USE_CPP03)
|
||||
|
||||
#include "adaptor/tr1/unordered_map.hpp"
|
||||
#include "adaptor/tr1/unordered_set.hpp"
|
||||
|
||||
#else // defined(MSGPACK_USE_CPP03)
|
||||
|
||||
#include "adaptor/cpp11/array.hpp"
|
||||
#include "adaptor/cpp11/array_char.hpp"
|
||||
#include "adaptor/cpp11/array_unsigned_char.hpp"
|
||||
#include "adaptor/cpp11/chrono.hpp"
|
||||
#include "adaptor/cpp11/forward_list.hpp"
|
||||
#include "adaptor/cpp11/reference_wrapper.hpp"
|
||||
#include "adaptor/cpp11/shared_ptr.hpp"
|
||||
#include "adaptor/cpp11/timespec.hpp"
|
||||
#include "adaptor/cpp11/tuple.hpp"
|
||||
#include "adaptor/cpp11/unique_ptr.hpp"
|
||||
#include "adaptor/cpp11/unordered_map.hpp"
|
||||
#include "adaptor/cpp11/unordered_set.hpp"
|
||||
|
||||
#if MSGPACK_HAS_INCLUDE(<optional>)
|
||||
#include "adaptor/cpp17/optional.hpp"
|
||||
#endif // MSGPACK_HAS_INCLUDE(<optional>)
|
||||
|
||||
#if MSGPACK_HAS_INCLUDE(<string_view>)
|
||||
#include "adaptor/cpp17/string_view.hpp"
|
||||
#endif // MSGPACK_HAS_INCLUDE(<string_view>)
|
||||
|
||||
#include "adaptor/cpp17/byte.hpp"
|
||||
#include "adaptor/cpp17/carray_byte.hpp"
|
||||
#include "adaptor/cpp17/vector_byte.hpp"
|
||||
|
||||
#endif // defined(MSGPACK_USE_CPP03)
|
||||
|
||||
#include "adaptor/boost/fusion.hpp"
|
||||
#include "adaptor/boost/msgpack_variant.hpp"
|
||||
#include "adaptor/boost/optional.hpp"
|
||||
#include "adaptor/boost/string_ref.hpp"
|
||||
#include "adaptor/boost/string_view.hpp"
|
19
extern/msgpack/include/msgpack/unpack.hpp
vendored
Normal file
19
extern/msgpack/include/msgpack/unpack.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_UNPACK_HPP
|
||||
#define MSGPACK_UNPACK_HPP
|
||||
|
||||
#include "msgpack/unpack_decl.hpp"
|
||||
|
||||
#include "msgpack/v1/unpack.hpp"
|
||||
#include "msgpack/v2/unpack.hpp"
|
||||
#include "msgpack/v3/unpack.hpp"
|
||||
|
||||
#endif // MSGPACK_UNPACK_HPP
|
17
extern/msgpack/include/msgpack/unpack_decl.hpp
vendored
Normal file
17
extern/msgpack/include/msgpack/unpack_decl.hpp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_UNPACK_DECL_HPP
|
||||
#define MSGPACK_UNPACK_DECL_HPP
|
||||
|
||||
#include "msgpack/v1/unpack_decl.hpp"
|
||||
#include "msgpack/v2/unpack_decl.hpp"
|
||||
#include "msgpack/v3/unpack_decl.hpp"
|
||||
|
||||
#endif // MSGPACK_UNPACK_DECL_HPP
|
75
extern/msgpack/include/msgpack/unpack_define.hpp
vendored
Normal file
75
extern/msgpack/include/msgpack/unpack_define.hpp
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* MessagePack unpacking routine template
|
||||
*
|
||||
* Copyright (C) 2008-2010 FURUHASHI Sadayuki
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#ifndef MSGPACK_UNPACK_DEFINE_HPP
|
||||
#define MSGPACK_UNPACK_DEFINE_HPP
|
||||
|
||||
#include "msgpack/sysdep.hpp"
|
||||
|
||||
#ifndef MSGPACK_EMBED_STACK_SIZE
|
||||
#define MSGPACK_EMBED_STACK_SIZE 32
|
||||
#endif
|
||||
|
||||
|
||||
typedef enum {
|
||||
MSGPACK_CS_HEADER = 0x00, // nil
|
||||
|
||||
//MSGPACK_CS_ = 0x01,
|
||||
//MSGPACK_CS_ = 0x02, // false
|
||||
//MSGPACK_CS_ = 0x03, // true
|
||||
|
||||
MSGPACK_CS_BIN_8 = 0x04,
|
||||
MSGPACK_CS_BIN_16 = 0x05,
|
||||
MSGPACK_CS_BIN_32 = 0x06,
|
||||
|
||||
MSGPACK_CS_EXT_8 = 0x07,
|
||||
MSGPACK_CS_EXT_16 = 0x08,
|
||||
MSGPACK_CS_EXT_32 = 0x09,
|
||||
|
||||
MSGPACK_CS_FLOAT = 0x0a,
|
||||
MSGPACK_CS_DOUBLE = 0x0b,
|
||||
MSGPACK_CS_UINT_8 = 0x0c,
|
||||
MSGPACK_CS_UINT_16 = 0x0d,
|
||||
MSGPACK_CS_UINT_32 = 0x0e,
|
||||
MSGPACK_CS_UINT_64 = 0x0f,
|
||||
MSGPACK_CS_INT_8 = 0x10,
|
||||
MSGPACK_CS_INT_16 = 0x11,
|
||||
MSGPACK_CS_INT_32 = 0x12,
|
||||
MSGPACK_CS_INT_64 = 0x13,
|
||||
|
||||
MSGPACK_CS_FIXEXT_1 = 0x14,
|
||||
MSGPACK_CS_FIXEXT_2 = 0x15,
|
||||
MSGPACK_CS_FIXEXT_4 = 0x16,
|
||||
MSGPACK_CS_FIXEXT_8 = 0x17,
|
||||
MSGPACK_CS_FIXEXT_16 = 0x18,
|
||||
|
||||
MSGPACK_CS_STR_8 = 0x19, // str8
|
||||
MSGPACK_CS_STR_16 = 0x1a, // str16
|
||||
MSGPACK_CS_STR_32 = 0x1b, // str32
|
||||
MSGPACK_CS_ARRAY_16 = 0x1c,
|
||||
MSGPACK_CS_ARRAY_32 = 0x1d,
|
||||
MSGPACK_CS_MAP_16 = 0x1e,
|
||||
MSGPACK_CS_MAP_32 = 0x1f,
|
||||
|
||||
//MSGPACK_ACS_BIG_INT_VALUE,
|
||||
//MSGPACK_ACS_BIG_FLOAT_VALUE,
|
||||
MSGPACK_ACS_STR_VALUE,
|
||||
MSGPACK_ACS_BIN_VALUE,
|
||||
MSGPACK_ACS_EXT_VALUE
|
||||
} msgpack_unpack_state;
|
||||
|
||||
|
||||
typedef enum {
|
||||
MSGPACK_CT_ARRAY_ITEM,
|
||||
MSGPACK_CT_MAP_KEY,
|
||||
MSGPACK_CT_MAP_VALUE
|
||||
} msgpack_container_type;
|
||||
|
||||
|
||||
#endif /* msgpack/unpack_define.hpp */
|
15
extern/msgpack/include/msgpack/unpack_exception.hpp
vendored
Normal file
15
extern/msgpack/include/msgpack/unpack_exception.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// MessagePack for C++ deserializing routine
|
||||
//
|
||||
// Copyright (C) 2017 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_UNPACK_EXCEPTION_HPP
|
||||
#define MSGPACK_UNPACK_EXCEPTION_HPP
|
||||
|
||||
#include "msgpack/v1/unpack_exception.hpp"
|
||||
|
||||
#endif // MSGPACK_UNPACK_EXCEPTION_HPP
|
116
extern/msgpack/include/msgpack/v1/adaptor/adaptor_base.hpp
vendored
Normal file
116
extern/msgpack/include/msgpack/v1/adaptor/adaptor_base.hpp
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2015-2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_V1_ADAPTOR_BASE_HPP
|
||||
#define MSGPACK_V1_ADAPTOR_BASE_HPP
|
||||
|
||||
#include "msgpack/v1/adaptor/adaptor_base_decl.hpp"
|
||||
|
||||
namespace msgpack {
|
||||
|
||||
/// @cond
|
||||
MSGPACK_API_VERSION_NAMESPACE(v1) {
|
||||
/// @endcond
|
||||
|
||||
|
||||
namespace adaptor {
|
||||
|
||||
// Adaptor functors
|
||||
|
||||
template <typename T, typename Enabler>
|
||||
struct convert {
|
||||
msgpack::object const& operator()(msgpack::object const& o, T& v) const;
|
||||
};
|
||||
|
||||
template <typename T, typename Enabler>
|
||||
struct pack {
|
||||
template <typename Stream>
|
||||
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& o, T const& v) const;
|
||||
};
|
||||
|
||||
template <typename T, typename Enabler>
|
||||
struct object {
|
||||
void operator()(msgpack::object& o, T const& v) const;
|
||||
};
|
||||
|
||||
template <typename T, typename Enabler>
|
||||
struct object_with_zone {
|
||||
void operator()(msgpack::object::with_zone& o, T const& v) const;
|
||||
};
|
||||
|
||||
} // namespace adaptor
|
||||
|
||||
// operators
|
||||
|
||||
template <typename T>
|
||||
inline
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value,
|
||||
msgpack::object const&
|
||||
>::type
|
||||
operator>> (msgpack::object const& o, T& v) {
|
||||
return msgpack::adaptor::convert<T>()(o, v);
|
||||
}
|
||||
template <typename T, std::size_t N>
|
||||
inline
|
||||
msgpack::object const& operator>> (msgpack::object const& o, T(&v)[N]) {
|
||||
return msgpack::adaptor::convert<T[N]>()(o, v);
|
||||
}
|
||||
|
||||
template <typename Stream, typename T>
|
||||
inline
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value,
|
||||
msgpack::packer<Stream>&
|
||||
>::type
|
||||
operator<< (msgpack::packer<Stream>& o, T const& v) {
|
||||
return msgpack::adaptor::pack<T>()(o, v);
|
||||
}
|
||||
template <typename Stream, typename T, std::size_t N>
|
||||
inline
|
||||
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const T(&v)[N]) {
|
||||
return msgpack::adaptor::pack<T[N]>()(o, v);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value
|
||||
>::type
|
||||
operator<< (msgpack::object& o, T const& v) {
|
||||
msgpack::adaptor::object<T>()(o, v);
|
||||
}
|
||||
template <typename T, std::size_t N>
|
||||
inline
|
||||
void operator<< (msgpack::v1::object& o, const T(&v)[N]) {
|
||||
msgpack::v1::adaptor::object<T[N]>()(o, v);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value
|
||||
>::type
|
||||
operator<< (msgpack::object::with_zone& o, T const& v) {
|
||||
msgpack::adaptor::object_with_zone<T>()(o, v);
|
||||
}
|
||||
template <typename T, std::size_t N>
|
||||
inline
|
||||
void operator<< (msgpack::object::with_zone& o, const T(&v)[N]) {
|
||||
msgpack::adaptor::object_with_zone<T[N]>()(o, v);
|
||||
}
|
||||
|
||||
/// @cond
|
||||
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
||||
/// @endcond
|
||||
|
||||
} // namespace msgpack
|
||||
|
||||
|
||||
#endif // MSGPACK_V1_ADAPTOR_BASE_HPP
|
86
extern/msgpack/include/msgpack/v1/adaptor/adaptor_base_decl.hpp
vendored
Normal file
86
extern/msgpack/include/msgpack/v1/adaptor/adaptor_base_decl.hpp
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
//
|
||||
// MessagePack for C++ static resolution routine
|
||||
//
|
||||
// Copyright (C) 2016 KONDO Takatoshi
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
#ifndef MSGPACK_V1_ADAPTOR_BASE_DECL_HPP
|
||||
#define MSGPACK_V1_ADAPTOR_BASE_DECL_HPP
|
||||
|
||||
#include "msgpack/versioning.hpp"
|
||||
#include "msgpack/object_fwd.hpp"
|
||||
#include "msgpack/pack.hpp"
|
||||
|
||||
namespace msgpack {
|
||||
|
||||
/// @cond
|
||||
MSGPACK_API_VERSION_NAMESPACE(v1) {
|
||||
/// @endcond
|
||||
|
||||
template <typename Stream>
|
||||
class packer;
|
||||
|
||||
namespace adaptor {
|
||||
|
||||
// Adaptor functors
|
||||
|
||||
template <typename T, typename Enabler = void>
|
||||
struct convert;
|
||||
|
||||
template <typename T, typename Enabler = void>
|
||||
struct pack;
|
||||
|
||||
template <typename T, typename Enabler = void>
|
||||
struct object;
|
||||
|
||||
template <typename T, typename Enabler = void>
|
||||
struct object_with_zone;
|
||||
|
||||
} // namespace adaptor
|
||||
|
||||
// operators
|
||||
|
||||
template <typename T>
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value,
|
||||
msgpack::object const&
|
||||
>::type
|
||||
operator>> (msgpack::object const& o, T& v);
|
||||
template <typename T, std::size_t N>
|
||||
msgpack::object const& operator>> (msgpack::object const& o, T(&v)[N]);
|
||||
|
||||
template <typename Stream, typename T>
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value,
|
||||
msgpack::packer<Stream>&
|
||||
>::type
|
||||
operator<< (msgpack::packer<Stream>& o, T const& v);
|
||||
template <typename Stream, typename T, std::size_t N>
|
||||
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const T(&v)[N]);
|
||||
|
||||
template <typename T>
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value
|
||||
>::type
|
||||
operator<< (msgpack::object& o, T const& v);
|
||||
template <typename T, std::size_t N>
|
||||
void operator<< (msgpack::object& o, const T(&v)[N]);
|
||||
|
||||
template <typename T>
|
||||
typename msgpack::enable_if<
|
||||
!is_array<T>::value
|
||||
>::type
|
||||
operator<< (msgpack::object::with_zone& o, T const& v);
|
||||
template <typename T, std::size_t N>
|
||||
void operator<< (msgpack::object::with_zone& o, const T(&v)[N]);
|
||||
|
||||
/// @cond
|
||||
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
||||
/// @endcond
|
||||
|
||||
} // namespace msgpack
|
||||
|
||||
#endif // MSGPACK_V1_ADAPTOR_BASE_DECL_HPP
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user