Classes | Namespaces | Macros | Enumerations | Functions | Variables
json.h File Reference
#include <string>
#include <vector>
#include <exception>
#include <map>
#include <deque>
#include <iosfwd>
#include <stack>
#include <istream>
#include <ostream>
#include <stdlib.h>
#include <sstream>
Include dependency graph for json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Json::CharReader
 
class  Json::CharReaderBuilder
 Build a CharReader implementation. More...
 
struct  Json::Value::CommentInfo
 
class  Json::Value::CZString
 
class  Json::Reader::ErrorInfo
 
class  Json::StreamWriter::Factory
 A simple abstract factory. More...
 
class  Json::CharReader::Factory
 
class  Json::FastWriter
 Outputs a Value in JSON format without formatting (not human friendly). More...
 
class  Json::Features
 Configuration passed to reader and writer. This configuration object can be used to force the Reader or Writer to behave in a standard conforming way. More...
 
class  Json::Path
 Experimental and untested: represents a "path" to access a node. More...
 
class  Json::PathArgument
 Experimental and untested: represents an element of the "path" to access a node. More...
 
class  Json::Reader
 Unserialize a JSON document into a Value. More...
 
class  Json::StaticString
 Lightweight wrapper to tag static string. More...
 
class  Json::StreamWriter
 
class  Json::StreamWriterBuilder
 Build a StreamWriter implementation. More...
 
struct  Json::Value::CZString::StringStorage
 
struct  Json::Reader::StructuredError
 An error tagged with where in the JSON text it was encountered. More...
 
class  Json::StyledStreamWriter
 Writes a Value in JSON format in a human friendly way, to a stream rather than to a string. More...
 
class  Json::StyledWriter
 Writes a Value in JSON format in a human friendly way. More...
 
class  Json::Reader::Token
 
class  Json::Value
 Represents a JSON value. More...
 
class  Json::ValueConstIterator
 const iterator for object and array value. More...
 
union  Json::Value::ValueHolder
 
class  Json::ValueIterator
 Iterator for object and array value. More...
 
class  Json::ValueIteratorBase
 base class for Value iterators. More...
 
class  Json::Writer
 Abstract class for writers. More...
 

Namespaces

 Json
 JSON (JavaScript Object Notation).
 
 std
 

Macros

#define CPPTL_JSON_ASSERTIONS_H_INCLUDED
 
#define CPPTL_JSON_FEATURES_H_INCLUDED
 
#define CPPTL_JSON_H_INCLUDED
 
#define CPPTL_JSON_READER_H_INCLUDED
 
#define JSON_API
 
#define JSON_ASSERT(condition)   {if (!(condition)) {Json::throwLogicError( "assert json failed" );}}
 
#define JSON_ASSERT_MESSAGE(condition, message)
 
#define JSON_CONFIG_H_INCLUDED
 
#define JSON_FAIL_MESSAGE(message)
 
#define JSON_FORWARDS_H_INCLUDED
 
#define JSON_HAS_INT64
 
#define JSON_IS_AMALGAMATION
 
#define JSON_USE_EXCEPTION   1
 If defined, indicates that json library is embedded in CppTL library. More...
 
#define JSON_VERSION_H_INCLUDED
 
#define JSON_WRITER_H_INCLUDED
 
#define JSONCPP_DEPRECATED(message)
 
#define JSONCPP_VERSION_HEXA   ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))
 
#define JSONCPP_VERSION_MAJOR   1
 
#define JSONCPP_VERSION_MINOR   6
 
#define JSONCPP_VERSION_PATCH   2
 
#define JSONCPP_VERSION_QUALIFIER
 
#define JSONCPP_VERSION_STRING   "1.6.2"
 

Enumerations

enum  Json::CommentPlacement { Json::commentBefore = 0, Json::commentAfterOnSameLine, Json::commentAfter, Json::numberOfCommentPlacement }
 
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...
 

Functions

JSON_API std::ostream & Json::operator<< (std::ostream &, const Value &root)
 Output using the StyledStreamWriter. More...
 
JSON_API std::istream & Json::operator>> (std::istream &, Value &)
 Read from 'sin' into 'root'. More...
 
bool JSON_API Json::parseFromStream (CharReader::Factory const &, std::istream &, Value *root, std::string *errs)
 
template<>
void std::swap (Json::Value &a, Json::Value &b)
 Specialize std::swap() for Json::Value. More...
 
void Json::throwLogicError (std::string const &msg)
 used internally More...
 
void Json::throwRuntimeError (std::string const &msg)
 used internally More...
 
std::string JSON_API Json::valueToQuotedString (const char *value)
 
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::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...
 

Variables

class JSON_API Json::Exception
 
class JSON_API Json::LogicError
 
class JSON_API Json::RuntimeError
 

Macro Definition Documentation

#define CPPTL_JSON_ASSERTIONS_H_INCLUDED

Definition at line 1960 of file json.h.

#define CPPTL_JSON_FEATURES_H_INCLUDED

Definition at line 293 of file json.h.

#define CPPTL_JSON_H_INCLUDED

Definition at line 364 of file json.h.

#define CPPTL_JSON_READER_H_INCLUDED

Definition at line 1204 of file json.h.

#define 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.

Definition at line 163 of file json.h.

#define JSON_ASSERT (   condition)    {if (!(condition)) {Json::throwLogicError( "assert json failed" );}}

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.

Definition at line 1976 of file json.h.

#define JSON_ASSERT_MESSAGE (   condition,
  message 
)
Value:
if (!(condition)) { \
JSON_FAIL_MESSAGE(message); \
}
#define JSON_FAIL_MESSAGE(message)
Definition: json.h:1979

Definition at line 2002 of file json.h.

#define JSON_CONFIG_H_INCLUDED

Definition at line 119 of file json.h.

#define JSON_FAIL_MESSAGE (   message)
Value:
{ \
std::ostringstream oss; oss << message; \
abort(); \
}
void throwLogicError(std::string const &msg)
used internally
Definition: jsoncpp.cpp:2569

Definition at line 1979 of file json.h.

#define JSON_FORWARDS_H_INCLUDED

Definition at line 242 of file json.h.

#define JSON_HAS_INT64

Definition at line 217 of file json.h.

#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.

Definition at line 79 of file json.h.

#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.

Definition at line 134 of file json.h.

#define JSON_VERSION_H_INCLUDED

Definition at line 89 of file json.h.

#define JSON_WRITER_H_INCLUDED

Definition at line 1619 of file json.h.

#define JSONCPP_DEPRECATED (   message)

Definition at line 196 of file json.h.

#define JSONCPP_VERSION_HEXA   ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))

Definition at line 96 of file json.h.

#define JSONCPP_VERSION_MAJOR   1

Definition at line 92 of file json.h.

#define JSONCPP_VERSION_MINOR   6

Definition at line 93 of file json.h.

#define JSONCPP_VERSION_PATCH   2

Definition at line 94 of file json.h.

#define JSONCPP_VERSION_QUALIFIER

Definition at line 95 of file json.h.

#define JSONCPP_VERSION_STRING   "1.6.2"

Definition at line 91 of file json.h.



mission_planning
Author(s): ivan
autogenerated on Thu Nov 12 2015 19:08:20