![]() |
CYCLUS
|
Classes | |
| class | BatchAllocator |
| class | CustomWriter |
| class | FastWriter |
| class | Features |
| class | Path |
| class | PathArgument |
| class | Reader |
| class | StaticString |
| class | StyledStreamWriter |
| class | StyledWriter |
| class | Value |
| class | ValueConstIterator |
| class | ValueIterator |
| class | ValueIteratorBase |
| class | Writer |
Typedefs | |
| typedef unsigned int | ArrayIndex |
| typedef int | Int |
| typedef long long int | Int64 |
| typedef Int64 | LargestInt |
| typedef UInt64 | LargestUInt |
| typedef unsigned int | UInt |
| typedef unsigned long long int | UInt64 |
| typedef char | UIntToStringBuffer[uintToStringBufferSize] |
Enumerations | |
| enum | { uintToStringBufferSize = 3 * sizeof(LargestUInt) + 1 } |
| enum | CommentPlacement { commentBefore = 0 , commentAfterOnSameLine , commentAfter , numberOfCommentPlacement } |
| enum | ValueType { nullValue = 0 , intValue , uintValue , realValue , stringValue , booleanValue , arrayValue , objectValue } |
Functions | |
| static std::string | codePointToUTF8 (unsigned int cp) |
| static bool | containsControlCharacter (const char *str) |
| static bool | containsNewLine (Reader::Location begin, Reader::Location end) |
| static char * | duplicateStringValue (const char *value, unsigned int length=unknown) |
| static bool | in (Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4) |
| static bool | in (Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4, Reader::Char c5) |
| static bool | isControlCharacter (char ch) |
| std::ostream & | operator<< (std::ostream &, const Value &root) |
| std::istream & | operator>> (std::istream &, Value &) |
| static void | releaseStringValue (char *value) |
| static void | uintToString (LargestUInt value, char *¤t) |
| std::string | valueToQuotedString (const char *value) |
| std::string | valueToString (bool value) |
| std::string | valueToString (double value) |
| std::string | valueToString (Int value) |
| std::string | valueToString (LargestInt value) |
| std::string | valueToString (LargestUInt value) |
| std::string | valueToString (UInt value) |
Variables | |
| static const unsigned int | unknown = (unsigned)-1 |
JSON (JavaScript Object Notation).
| typedef unsigned int Json::ArrayIndex |
| typedef long long int Json::Int64 |
| typedef Int64 Json::LargestInt |
| typedef UInt64 Json::LargestUInt |
| typedef unsigned int Json::UInt |
| typedef unsigned long long int Json::UInt64 |
| typedef char Json::UIntToStringBuffer[uintToStringBufferSize] |
| anonymous enum |
| enum Json::ValueType |
Type of the value held by a Value object.
|
inlinestatic |
|
static |
|
static |
|
inlinestatic |
Duplicates the specified string value.
| value | Pointer to the string to duplicate. Must be zero-terminated if length is "unknown". |
| length | Length of the value. if equals to unknown, then it will be computed using strlen(value). |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| std::ostream & Json::operator<< | ( | std::ostream & | , |
| const Value & | root ) |
Output using the StyledStreamWriter.
| std::istream & Json::operator>> | ( | std::istream & | , |
| Value & | ) |
Read from 'sin' into 'root'.
Always keep comments from the input JSON.
This can be used to read a file into a particular sub-object. For example:
Result:
{
"dir": {
"file": {
// The input stream JSON would be nested here.
}
}
}
| std::exception | on parse error. |
|
inlinestatic |
Free the string duplicated by duplicateStringValue().
|
inlinestatic |
| std::string JSON_API Json::valueToQuotedString | ( | const char * | value | ) |
| std::string JSON_API Json::valueToString | ( | LargestInt | value | ) |
| std::string JSON_API Json::valueToString | ( | LargestUInt | value | ) |