NeBuild dev
Loading...
Searching...
No Matches
json_fwd.h
Go to the documentation of this file.
1// __ _____ _____ _____
2// __| | __| | | | JSON for Modern C++
3// | | |__ | | | | | | version 3.11.3
4// |_____|_____|_____|_|___| https://github.com/nlohmann/json
5//
6// SPDX-FileCopyrightText: 2013-2023 Niels Lohmann <https://nlohmann.me>
7// SPDX-License-Identifier: MIT
8
9#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_
10#define INCLUDE_NLOHMANN_JSON_FWD_HPP_
11
12#include <cstdint> // int64_t, uint64_t
13#include <map> // map
14#include <memory> // allocator
15#include <string> // string
16#include <vector> // vector
17
18// #include <nlohmann/detail/abi_macros.hpp>
19// __ _____ _____ _____
20// __| | __| | | | JSON for Modern C++
21// | | |__ | | | | | | version 3.11.3
22// |_____|_____|_____|_|___| https://github.com/nlohmann/json
23//
24// SPDX-FileCopyrightText: 2013-2023 Niels Lohmann <https://nlohmann.me>
25// SPDX-License-Identifier: MIT
26
27// This file contains all macro definitions affecting or depending on the ABI
28
29#ifndef JSON_SKIP_LIBRARY_VERSION_CHECK
30#if defined(NLOHMANN_JSON_VERSION_MAJOR) && defined(NLOHMANN_JSON_VERSION_MINOR) && \
31 defined(NLOHMANN_JSON_VERSION_PATCH)
32#if NLOHMANN_JSON_VERSION_MAJOR != 3 || NLOHMANN_JSON_VERSION_MINOR != 11 || \
33 NLOHMANN_JSON_VERSION_PATCH != 3
34#warning "Already included a different version of the library!"
35#endif
36#endif
37#endif
38
39#define NLOHMANN_JSON_VERSION_MAJOR 3 // NOLINT(modernize-macro-to-enum)
40#define NLOHMANN_JSON_VERSION_MINOR 11 // NOLINT(modernize-macro-to-enum)
41#define NLOHMANN_JSON_VERSION_PATCH 3 // NOLINT(modernize-macro-to-enum)
42
43#ifndef JSON_DIAGNOSTICS
44#define JSON_DIAGNOSTICS 0
45#endif
46
47#ifndef JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON
48#define JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON 0
49#endif
50
51#if JSON_DIAGNOSTICS
52#define NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS _diag
53#else
54#define NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS
55#endif
56
57#if JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON
58#define NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON _ldvcmp
59#else
60#define NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON
61#endif
62
63#ifndef NLOHMANN_JSON_NAMESPACE_NO_VERSION
64#define NLOHMANN_JSON_NAMESPACE_NO_VERSION 0
65#endif
66
67// Construct the namespace ABI tags component
68#define NLOHMANN_JSON_ABI_TAGS_CONCAT_EX(a, b) json_abi##a##b
69#define NLOHMANN_JSON_ABI_TAGS_CONCAT(a, b) NLOHMANN_JSON_ABI_TAGS_CONCAT_EX(a, b)
70
71#define NLOHMANN_JSON_ABI_TAGS \
72 NLOHMANN_JSON_ABI_TAGS_CONCAT(NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS, \
73 NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON)
74
75// Construct the namespace version component
76#define NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT_EX(major, minor, patch) _v##major##_##minor##_##patch
77#define NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT(major, minor, patch) \
78 NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT_EX(major, minor, patch)
79
80#if NLOHMANN_JSON_NAMESPACE_NO_VERSION
81#define NLOHMANN_JSON_NAMESPACE_VERSION
82#else
83#define NLOHMANN_JSON_NAMESPACE_VERSION \
84 NLOHMANN_JSON_NAMESPACE_VERSION_CONCAT(NLOHMANN_JSON_VERSION_MAJOR, NLOHMANN_JSON_VERSION_MINOR, \
85 NLOHMANN_JSON_VERSION_PATCH)
86#endif
87
88// Combine namespace components
89#define NLOHMANN_JSON_NAMESPACE_CONCAT_EX(a, b) a##b
90#define NLOHMANN_JSON_NAMESPACE_CONCAT(a, b) NLOHMANN_JSON_NAMESPACE_CONCAT_EX(a, b)
91
92#ifndef NLOHMANN_JSON_NAMESPACE
93#define NLOHMANN_JSON_NAMESPACE \
94 nlohmann::NLOHMANN_JSON_NAMESPACE_CONCAT(NLOHMANN_JSON_ABI_TAGS, NLOHMANN_JSON_NAMESPACE_VERSION)
95#endif
96
97#ifndef NLOHMANN_JSON_NAMESPACE_BEGIN
98#define NLOHMANN_JSON_NAMESPACE_BEGIN \
99 namespace nlohmann { \
100 inline namespace NLOHMANN_JSON_NAMESPACE_CONCAT(NLOHMANN_JSON_ABI_TAGS, \
101 NLOHMANN_JSON_NAMESPACE_VERSION) {
102#endif
103
104#ifndef NLOHMANN_JSON_NAMESPACE_END
105#define NLOHMANN_JSON_NAMESPACE_END \
106 } /* namespace (inline namespace) NOLINT(readability/namespace) */ \
107 } // namespace nlohmann
108#endif
109
116
124template <typename T = void, typename SFINAE = void>
125struct adl_serializer;
126
129template <template <typename U, typename V, typename... Args> class ObjectType = std::map,
130 template <typename U, typename... Args> class ArrayType = std::vector,
131 class StringType = std::string, class BooleanType = bool,
132 class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t,
133 class NumberFloatType = double,
134 template <typename U> class AllocatorType = std::allocator,
135 template <typename T, typename SFINAE = void> class JSONSerializer = adl_serializer,
136 class BinaryType = std::vector<std::uint8_t>, // cppcheck-suppress syntaxError
137 class CustomBaseClass = void>
138class basic_json;
139
143template <typename RefStringType>
144class json_pointer;
145
151
154template <class Key, class T, class IgnoredLess, class Allocator>
155struct ordered_map;
156
160
162
163#endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_
namespace for Niels Lohmann
Definition json.h:19402
JSON Pointer defines a string syntax for identifying a specific value within a JSON document.
Definition json.h:13842
basic_json< nlohmann::ordered_map > ordered_json
specialization that maintains the insertion order of object keys
Definition json.h:3431
basic_json<> json
default specialization
Definition json.h:3422
#define NLOHMANN_JSON_NAMESPACE_END
Definition json_fwd.h:105
#define NLOHMANN_JSON_NAMESPACE_BEGIN
Definition json_fwd.h:98
namespace for Niels Lohmann
Definition json.h:5834
a minimal map-like container that preserves insertion order
Definition json.h:19035