#include <exception>
#include <string>
#include <vector>
#include <map>
#include <deque>
#include <iosfwd>
#include <istream>
#include <stack>
#include <ostream>
#include <sstream>
#include <stdlib.h>
Go to the source code of this file.
|
| | Json |
| | JSON (JavaScript Object Notation).
|
| |
| | std |
| |
|
| enum | Json::ValueType {
Json::nullValue = 0,
Json::intValue,
Json::uintValue,
Json::realValue,
Json::stringValue,
Json::booleanValue,
Json::arrayValue,
Json::objectValue
} |
| | Type of the value held by a Value object. More...
|
| |
| enum | Json::CommentPlacement { Json::commentBefore = 0,
Json::commentAfterOnSameLine,
Json::commentAfter,
Json::numberOfCommentPlacement
} |
| |
|
| void | Json::throwRuntimeError (std::string const &msg) |
| | used internally More...
|
| |
| void | Json::throwLogicError (std::string const &msg) |
| | used internally More...
|
| |
| template<> |
| void | std::swap (Json::Value &a, Json::Value &b) |
| | Specialize std::swap() for Json::Value. More...
|
| |
| bool JSON_API | Json::parseFromStream (CharReader::Factory const &, std::istream &, Value *root, std::string *errs) |
| |
| JSON_API std::istream & | Json::operator>> (std::istream &, Value &) |
| | Read from 'sin' into 'root'. More...
|
| |
| std::string JSON_API | Json::writeString (StreamWriter::Factory const &factory, Value const &root) |
| | Write into stringstream, then return string, for convenience. A StreamWriter will be created from the factory, used, and then deleted. More...
|
| |
| std::string JSON_API | Json::valueToString (Int value) |
| |
| std::string JSON_API | Json::valueToString (UInt value) |
| |
| std::string JSON_API | Json::valueToString (LargestInt value) |
| |
| std::string JSON_API | Json::valueToString (LargestUInt value) |
| |
| std::string JSON_API | Json::valueToString (double value) |
| |
| std::string JSON_API | Json::valueToString (bool value) |
| |
| std::string JSON_API | Json::valueToQuotedString (const char *value) |
| |
| JSON_API std::ostream & | Json::operator<< (std::ostream &, const Value &root) |
| | Output using the StyledStreamWriter. More...
|
| |
◆ CPPTL_JSON_ASSERTIONS_H_INCLUDED
| #define CPPTL_JSON_ASSERTIONS_H_INCLUDED |
◆ CPPTL_JSON_FEATURES_H_INCLUDED
| #define CPPTL_JSON_FEATURES_H_INCLUDED |
◆ CPPTL_JSON_H_INCLUDED
| #define CPPTL_JSON_H_INCLUDED |
◆ CPPTL_JSON_READER_H_INCLUDED
| #define CPPTL_JSON_READER_H_INCLUDED |
◆ JSON_API
If defined, indicates that the source file is amalgated to prevent private header inclusion. Remarks: it is automatically defined in the generated amalgated header.
◆ JSON_ASSERT
| #define JSON_ASSERT |
( |
|
condition | ) |
|
Value:{ \
} \
}
void throwLogicError(std::string const &msg)
used internally
It should not be possible for a maliciously designed file to cause an abort() or seg-fault, so these macros are used only for pre-condition violations and internal logic errors.
◆ JSON_ASSERT_MESSAGE
| #define JSON_ASSERT_MESSAGE |
( |
|
condition, |
|
|
|
message |
|
) |
| |
Value:if (!(condition)) { \
JSON_FAIL_MESSAGE(message); \
}
◆ JSON_CONFIG_H_INCLUDED
| #define JSON_CONFIG_H_INCLUDED |
◆ JSON_FAIL_MESSAGE
| #define JSON_FAIL_MESSAGE |
( |
|
message | ) |
|
Value:{ \
std::ostringstream oss; \
abort(); \
}
void throwLogicError(std::string const &msg)
used internally
◆ JSON_FORWARDS_H_INCLUDED
| #define JSON_FORWARDS_H_INCLUDED |
◆ JSON_HAS_INT64
◆ JSON_IS_AMALGAMATION
| #define JSON_IS_AMALGAMATION |
Json-cpp amalgated header (http://jsoncpp.sourceforge.net/). It is intended to be used with #include "json/json.h" If defined, indicates that the source file is amalgated to prevent private header inclusion.
◆ JSON_USE_EXCEPTION
| #define JSON_USE_EXCEPTION 1 |
If defined, indicates that json library is embedded in CppTL library.
If defined, indicates that json may leverage CppTL library If defined, indicates that cpptl vector based map should be used instead of std::map as Value container.
◆ JSON_VERSION_H_INCLUDED
| #define JSON_VERSION_H_INCLUDED |
◆ JSON_WRITER_H_INCLUDED
| #define JSON_WRITER_H_INCLUDED |
◆ JSONCPP_DEPRECATED
| #define JSONCPP_DEPRECATED |
( |
|
message | ) |
|
◆ JSONCPP_VERSION_HEXA
◆ JSONCPP_VERSION_MAJOR
| #define JSONCPP_VERSION_MAJOR 1 |
◆ JSONCPP_VERSION_MINOR
| #define JSONCPP_VERSION_MINOR 6 |
◆ JSONCPP_VERSION_PATCH
| #define JSONCPP_VERSION_PATCH 2 |
◆ JSONCPP_VERSION_QUALIFIER
| #define JSONCPP_VERSION_QUALIFIER |
◆ JSONCPP_VERSION_STRING
| #define JSONCPP_VERSION_STRING "1.6.2" |