1 /// Json-cpp amalgamated forward header (http://jsoncpp.sourceforge.net/).
2 /// It is intended to be used with #include "json/json-forwards.h"
3 /// This header provides forward declaration for all JsonCpp types.
4 
5 // //////////////////////////////////////////////////////////////////////
6 // Beginning of content of file: LICENSE
7 // //////////////////////////////////////////////////////////////////////
8 
9 /*
10 The JsonCpp library's source code, including accompanying documentation,
11 tests and demonstration applications, are licensed under the following
12 conditions...
13 
14 Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all
15 jurisdictions which recognize such a disclaimer. In such jurisdictions,
16 this software is released into the Public Domain.
17 
18 In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
19 2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur and
20 The JsonCpp Authors, and is released under the terms of the MIT License (see below).
21 
22 In jurisdictions which recognize Public Domain property, the user of this
23 software may choose to accept it either as 1) Public Domain, 2) under the
24 conditions of the MIT License (see below), or 3) under the terms of dual
25 Public Domain/MIT License conditions described here, as they choose.
26 
27 The MIT License is about as close to Public Domain as a license can get, and is
28 described in clear, concise terms at:
29 
30    http://en.wikipedia.org/wiki/MIT_License
31 
32 The full text of the MIT License follows:
33 
34 ========================================================================
35 Copyright (c) 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
36 
37 Permission is hereby granted, free of charge, to any person
38 obtaining a copy of this software and associated documentation
39 files (the "Software"), to deal in the Software without
40 restriction, including without limitation the rights to use, copy,
41 modify, merge, publish, distribute, sublicense, and/or sell copies
42 of the Software, and to permit persons to whom the Software is
43 furnished to do so, subject to the following conditions:
44 
45 The above copyright notice and this permission notice shall be
46 included in all copies or substantial portions of the Software.
47 
48 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
51 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
52 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
53 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
54 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55 SOFTWARE.
56 ========================================================================
57 (END LICENSE TEXT)
58 
59 The MIT license is compatible with both the GPL and commercial
60 software, affording one all of the rights of Public Domain with the
61 minor nuisance of being required to keep the above copyright notice
62 and license text in the source code. Note also that by accepting the
63 Public Domain "license" you can re-license your copy using whatever
64 license you like.
65 
66 */
67 
68 // //////////////////////////////////////////////////////////////////////
69 // End of content of file: LICENSE
70 // //////////////////////////////////////////////////////////////////////
71 
72 
73 
74 
75 
76 #ifndef JSON_FORWARD_AMALGAMATED_H_INCLUDED
77 # define JSON_FORWARD_AMALGAMATED_H_INCLUDED
78 /// If defined, indicates that the source file is amalgamated
79 /// to prevent private header inclusion.
80 #define JSON_IS_AMALGAMATION
81 
82 // //////////////////////////////////////////////////////////////////////
83 // Beginning of content of file: include/json/config.h
84 // //////////////////////////////////////////////////////////////////////
85 
86 // Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
87 // Distributed under MIT license, or public domain if desired and
88 // recognized in your jurisdiction.
89 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
90 
91 #ifndef JSON_CONFIG_H_INCLUDED
92 #define JSON_CONFIG_H_INCLUDED
93 #include <stddef.h>
94 #include <string> //typedef String
95 #include <stdint.h> //typedef int64_t, uint64_t
96 
97 /// If defined, indicates that json library is embedded in CppTL library.
98 //# define JSON_IN_CPPTL 1
99 
100 /// If defined, indicates that json may leverage CppTL library
101 //#  define JSON_USE_CPPTL 1
102 /// If defined, indicates that cpptl vector based map should be used instead of
103 /// std::map
104 /// as Value container.
105 //#  define JSON_USE_CPPTL_SMALLMAP 1
106 #define JSON_USE_EXCEPTION 0
107 // If non-zero, the library uses exceptions to report bad input instead of C
108 // assertion macros. The default is to use exceptions.
109 #ifndef JSON_USE_EXCEPTION
110 #define JSON_USE_EXCEPTION 1
111 #endif
112 
113 /// If defined, indicates that the source file is amalgamated
114 /// to prevent private header inclusion.
115 /// Remarks: it is automatically defined in the generated amalgamated header.
116 // #define JSON_IS_AMALGAMATION
117 
118 #ifdef JSON_IN_CPPTL
119 #include <cpptl/config.h>
120 #ifndef JSON_USE_CPPTL
121 #define JSON_USE_CPPTL 1
122 #endif
123 #endif
124 
125 #ifdef JSON_IN_CPPTL
126 #define JSON_API CPPTL_API
127 #elif defined(JSON_DLL_BUILD)
128 #if defined(_MSC_VER) || defined(__MINGW32__)
129 #define JSON_API __declspec(dllexport)
130 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
131 #endif // if defined(_MSC_VER)
132 #elif defined(JSON_DLL)
133 #if defined(_MSC_VER) || defined(__MINGW32__)
134 #define JSON_API __declspec(dllimport)
135 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
136 #endif // if defined(_MSC_VER)
137 #endif // ifdef JSON_IN_CPPTL
138 #if !defined(JSON_API)
139 #define JSON_API
140 #endif
141 
142 // If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
143 // integer
144 // Storages, and 64 bits integer support is disabled.
145 // #define JSON_NO_INT64 1
146 
147 #if defined(_MSC_VER) // MSVC
148 #  if _MSC_VER <= 1200 // MSVC 6
149     // Microsoft Visual Studio 6 only support conversion from __int64 to double
150     // (no conversion from unsigned __int64).
151 #    define JSON_USE_INT64_DOUBLE_CONVERSION 1
152     // Disable warning 4786 for VS6 caused by STL (identifier was truncated to '255'
153     // characters in the debug information)
154     // All projects I've ever seen with VS6 were using this globally (not bothering
155     // with pragma push/pop).
156 #    pragma warning(disable : 4786)
157 #  endif // MSVC 6
158 
159 #  if _MSC_VER >= 1500 // MSVC 2008
160     /// Indicates that the following function is deprecated.
161 #    define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
162 #  endif
163 
164 #endif // defined(_MSC_VER)
165 
166 // In c++11 the override keyword allows you to explicitly define that a function
167 // is intended to override the base-class version.  This makes the code more
168 // managable and fixes a set of common hard-to-find bugs.
169 #if __cplusplus >= 201103L
170 # define JSONCPP_OVERRIDE override
171 # define JSONCPP_NOEXCEPT noexcept
172 #elif defined(_MSC_VER) && _MSC_VER > 1600 && _MSC_VER < 1900
173 # define JSONCPP_OVERRIDE override
174 # define JSONCPP_NOEXCEPT throw()
175 #elif defined(_MSC_VER) && _MSC_VER >= 1900
176 # define JSONCPP_OVERRIDE override
177 # define JSONCPP_NOEXCEPT noexcept
178 #else
179 # define JSONCPP_OVERRIDE
180 # define JSONCPP_NOEXCEPT throw()
181 #endif
182 
183 #ifndef JSON_HAS_RVALUE_REFERENCES
184 
185 #if defined(_MSC_VER) && _MSC_VER >= 1600 // MSVC >= 2010
186 #define JSON_HAS_RVALUE_REFERENCES 1
187 #endif // MSVC >= 2010
188 
189 #ifdef __clang__
190 #if __has_feature(cxx_rvalue_references)
191 #define JSON_HAS_RVALUE_REFERENCES 1
192 #endif  // has_feature
193 
194 #elif defined __GNUC__ // not clang (gcc comes later since clang emulates gcc)
195 #if defined(__GXX_EXPERIMENTAL_CXX0X__) || (__cplusplus >= 201103L)
196 #define JSON_HAS_RVALUE_REFERENCES 1
197 #endif  // GXX_EXPERIMENTAL
198 
199 #endif // __clang__ || __GNUC__
200 
201 #endif // not defined JSON_HAS_RVALUE_REFERENCES
202 
203 #ifndef JSON_HAS_RVALUE_REFERENCES
204 #define JSON_HAS_RVALUE_REFERENCES 0
205 #endif
206 
207 #ifdef __clang__
208 #  if __has_extension(attribute_deprecated_with_message)
209 #    define JSONCPP_DEPRECATED(message)  __attribute__ ((deprecated(message)))
210 #  endif
211 #elif defined __GNUC__ // not clang (gcc comes later since clang emulates gcc)
212 #  if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
213 #    define JSONCPP_DEPRECATED(message)  __attribute__ ((deprecated(message)))
214 #  elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
215 #    define JSONCPP_DEPRECATED(message)  __attribute__((__deprecated__))
216 #  endif  // GNUC version
217 #endif // __clang__ || __GNUC__
218 
219 #if !defined(JSONCPP_DEPRECATED)
220 #define JSONCPP_DEPRECATED(message)
221 #endif // if !defined(JSONCPP_DEPRECATED)
222 
223 #if __GNUC__ >= 6
224 #  define JSON_USE_INT64_DOUBLE_CONVERSION 1
225 #endif
226 
227 #if !defined(JSON_IS_AMALGAMATION)
228 
229 # include "version.h"
230 
231 # if JSONCPP_USING_SECURE_MEMORY
232 #  include "allocator.h" //typedef Allocator
233 # endif
234 
235 #endif // if !defined(JSON_IS_AMALGAMATION)
236 namespace AlibabaCloud
237 {
238 namespace OSS
239 {
240 namespace Json {
241 typedef int Int;
242 typedef unsigned int UInt;
243 #if defined(JSON_NO_INT64)
244 typedef int LargestInt;
245 typedef unsigned int LargestUInt;
246 #undef JSON_HAS_INT64
247 #else                 // if defined(JSON_NO_INT64)
248 // For Microsoft Visual use specific types as long long is not supported
249 #if defined(_MSC_VER) // Microsoft Visual Studio
250 typedef __int64 Int64;
251 typedef unsigned __int64 UInt64;
252 #else                 // if defined(_MSC_VER) // Other platforms, use long long
253 typedef int64_t Int64;
254 typedef uint64_t UInt64;
255 #endif // if defined(_MSC_VER)
256 typedef Int64 LargestInt;
257 typedef UInt64 LargestUInt;
258 #define JSON_HAS_INT64
259 #endif // if defined(JSON_NO_INT64)
260 #if JSONCPP_USING_SECURE_MEMORY
261 #define JSONCPP_STRING        std::basic_string<char, std::char_traits<char>, Json::SecureAllocator<char> >
262 #define JSONCPP_OSTRINGSTREAM std::basic_ostringstream<char, std::char_traits<char>, Json::SecureAllocator<char> >
263 #define JSONCPP_OSTREAM       std::basic_ostream<char, std::char_traits<char>>
264 #define JSONCPP_ISTRINGSTREAM std::basic_istringstream<char, std::char_traits<char>, Json::SecureAllocator<char> >
265 #define JSONCPP_ISTREAM       std::istream
266 #else
267 #define JSONCPP_STRING        std::string
268 #define JSONCPP_OSTRINGSTREAM std::ostringstream
269 #define JSONCPP_OSTREAM       std::ostream
270 #define JSONCPP_ISTRINGSTREAM std::istringstream
271 #define JSONCPP_ISTREAM       std::istream
272 #endif // if JSONCPP_USING_SECURE_MEMORY
273 } // end namespace Json
274 }
275 }
276 #endif // JSON_CONFIG_H_INCLUDED
277 
278 // //////////////////////////////////////////////////////////////////////
279 // End of content of file: include/json/config.h
280 // //////////////////////////////////////////////////////////////////////
281 
282 
283 
284 
285 
286 
287 // //////////////////////////////////////////////////////////////////////
288 // Beginning of content of file: include/json/forwards.h
289 // //////////////////////////////////////////////////////////////////////
290 
291 // Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
292 // Distributed under MIT license, or public domain if desired and
293 // recognized in your jurisdiction.
294 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
295 
296 #ifndef JSON_FORWARDS_H_INCLUDED
297 #define JSON_FORWARDS_H_INCLUDED
298 
299 #if !defined(JSON_IS_AMALGAMATION)
300 #include "config.h"
301 #endif // if !defined(JSON_IS_AMALGAMATION)
302 namespace AlibabaCloud
303 {
304 namespace OSS
305 {
306 
307 namespace Json {
308 
309 // writer.h
310 class FastWriter;
311 class StyledWriter;
312 
313 // reader.h
314 class Reader;
315 
316 // features.h
317 class Features;
318 
319 // value.h
320 typedef unsigned int ArrayIndex;
321 class StaticString;
322 class Path;
323 class PathArgument;
324 class Value;
325 class ValueIteratorBase;
326 class ValueIterator;
327 class ValueConstIterator;
328 
329 } // namespace Json
330 }
331 }
332 #endif // JSON_FORWARDS_H_INCLUDED
333 
334 // //////////////////////////////////////////////////////////////////////
335 // End of content of file: include/json/forwards.h
336 // //////////////////////////////////////////////////////////////////////
337 
338 
339 
340 
341 
342 #endif //ifndef JSON_FORWARD_AMALGAMATED_H_INCLUDED
343