• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /// Json-cpp amalgated 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 The author (Baptiste Lepilleur) explicitly disclaims 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 is
20 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
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_AMALGATED_H_INCLUDED
77 # define JSON_FORWARD_AMALGATED_H_INCLUDED
78 /// If defined, indicates that the source file is amalgated
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
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 
94 /// If defined, indicates that json library is embedded in CppTL library.
95 //# define JSON_IN_CPPTL 1
96 
97 /// If defined, indicates that json may leverage CppTL library
98 //#  define JSON_USE_CPPTL 1
99 /// If defined, indicates that cpptl vector based map should be used instead of
100 /// std::map
101 /// as Value container.
102 //#  define JSON_USE_CPPTL_SMALLMAP 1
103 
104 // If non-zero, the library uses exceptions to report bad input instead of C
105 // assertion macros. The default is to use exceptions.
106 #ifndef JSON_USE_EXCEPTION
107 #define JSON_USE_EXCEPTION 1
108 #endif
109 
110 /// If defined, indicates that the source file is amalgated
111 /// to prevent private header inclusion.
112 /// Remarks: it is automatically defined in the generated amalgated header.
113 // #define JSON_IS_AMALGAMATION
114 
115 #ifdef JSON_IN_CPPTL
116 #include <cpptl/config.h>
117 #ifndef JSON_USE_CPPTL
118 #define JSON_USE_CPPTL 1
119 #endif
120 #endif
121 
122 #ifdef JSON_IN_CPPTL
123 #define JSON_API CPPTL_API
124 #elif defined(JSON_DLL_BUILD)
125 #if defined(_MSC_VER)
126 #define JSON_API __declspec(dllexport)
127 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
128 #endif // if defined(_MSC_VER)
129 #elif defined(JSON_DLL)
130 #if defined(_MSC_VER)
131 #define JSON_API __declspec(dllimport)
132 #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
133 #endif // if defined(_MSC_VER)
134 #endif // ifdef JSON_IN_CPPTL
135 #if !defined(JSON_API)
136 #define JSON_API
137 #endif
138 
139 // If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
140 // integer
141 // Storages, and 64 bits integer support is disabled.
142 // #define JSON_NO_INT64 1
143 
144 #if defined(_MSC_VER) && _MSC_VER <= 1200 // MSVC 6
145 // Microsoft Visual Studio 6 only support conversion from __int64 to double
146 // (no conversion from unsigned __int64).
147 #define JSON_USE_INT64_DOUBLE_CONVERSION 1
148 // Disable warning 4786 for VS6 caused by STL (identifier was truncated to '255'
149 // characters in the debug information)
150 // All projects I've ever seen with VS6 were using this globally (not bothering
151 // with pragma push/pop).
152 #pragma warning(disable : 4786)
153 #endif // if defined(_MSC_VER)  &&  _MSC_VER < 1200 // MSVC 6
154 
155 #if defined(_MSC_VER) && _MSC_VER >= 1500 // MSVC 2008
156 /// Indicates that the following function is deprecated.
157 #define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
158 #elif defined(__clang__) && defined(__has_feature)
159 #if __has_feature(attribute_deprecated_with_message)
160 #define JSONCPP_DEPRECATED(message)  __attribute__ ((deprecated(message)))
161 #endif
162 #elif defined(__GNUC__) &&  (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
163 #define JSONCPP_DEPRECATED(message)  __attribute__ ((deprecated(message)))
164 #elif defined(__GNUC__) &&  (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
165 #define JSONCPP_DEPRECATED(message)  __attribute__((__deprecated__))
166 #endif
167 
168 #if !defined(JSONCPP_DEPRECATED)
169 #define JSONCPP_DEPRECATED(message)
170 #endif // if !defined(JSONCPP_DEPRECATED)
171 
172 namespace Json {
173 typedef int Int;
174 typedef unsigned int UInt;
175 #if defined(JSON_NO_INT64)
176 typedef int LargestInt;
177 typedef unsigned int LargestUInt;
178 #undef JSON_HAS_INT64
179 #else                 // if defined(JSON_NO_INT64)
180 // For Microsoft Visual use specific types as long long is not supported
181 #if defined(_MSC_VER) // Microsoft Visual Studio
182 typedef __int64 Int64;
183 typedef unsigned __int64 UInt64;
184 #else                 // if defined(_MSC_VER) // Other platforms, use long long
185 typedef long long int Int64;
186 typedef unsigned long long int UInt64;
187 #endif // if defined(_MSC_VER)
188 typedef Int64 LargestInt;
189 typedef UInt64 LargestUInt;
190 #define JSON_HAS_INT64
191 #endif // if defined(JSON_NO_INT64)
192 } // end namespace Json
193 
194 #endif // JSON_CONFIG_H_INCLUDED
195 
196 // //////////////////////////////////////////////////////////////////////
197 // End of content of file: include/json/config.h
198 // //////////////////////////////////////////////////////////////////////
199 
200 
201 
202 
203 
204 
205 // //////////////////////////////////////////////////////////////////////
206 // Beginning of content of file: include/json/forwards.h
207 // //////////////////////////////////////////////////////////////////////
208 
209 // Copyright 2007-2010 Baptiste Lepilleur
210 // Distributed under MIT license, or public domain if desired and
211 // recognized in your jurisdiction.
212 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
213 
214 #ifndef JSON_FORWARDS_H_INCLUDED
215 #define JSON_FORWARDS_H_INCLUDED
216 
217 #if !defined(JSON_IS_AMALGAMATION)
218 #include "config.h"
219 #endif // if !defined(JSON_IS_AMALGAMATION)
220 
221 namespace Json {
222 
223 // writer.h
224 class FastWriter;
225 class StyledWriter;
226 
227 // reader.h
228 class Reader;
229 
230 // features.h
231 class Features;
232 
233 // value.h
234 typedef unsigned int ArrayIndex;
235 class StaticString;
236 class Path;
237 class PathArgument;
238 class Value;
239 class ValueIteratorBase;
240 class ValueIterator;
241 class ValueConstIterator;
242 
243 } // namespace Json
244 
245 #endif // JSON_FORWARDS_H_INCLUDED
246 
247 // //////////////////////////////////////////////////////////////////////
248 // End of content of file: include/json/forwards.h
249 // //////////////////////////////////////////////////////////////////////
250 
251 
252 
253 
254 
255 #endif //ifndef JSON_FORWARD_AMALGATED_H_INCLUDED
256