|
|
#include <ArmarXGui/libraries/StructuralJson/JsonValue.h>
Inheritance diagram for JsonValue:Public Types | |
| enum | Type { eString, eNumber, eBool, eNull } |
Public Member Functions | |
| bool | asBool () const |
| float | asFloat () const |
| int | asInt () const |
| std::string | asString () const |
| JsonDataPtr | clone () override |
| Type | getType () |
| JsonValue (const std::string &value) | |
| JsonValue (double value) | |
| JsonValue (float value) | |
| JsonValue (int value) | |
| JsonValue (long value) | |
| std::string | rawValue () |
| JsonValuePtr | toSharedPtr () const |
| void | writeJson (const JsonWriterPtr &writer) override |
Public Member Functions inherited from JsonData | |
| LexerInfo | getLexerEndOffset () |
| LexerInfo | getLexerStartOffset () |
| JsonData () | |
| void | setLexerEndOffset (LexerInfo lexerEndOffset) |
| void | setLexerStartOffset (LexerInfo lexerStartOffset) |
| std::string | toJsonString (int indenting=0, const std::string indentChars=" ", bool jsStyleKeys=false) |
| virtual | ~JsonData ()=default |
Static Public Member Functions | |
| static bool | CheckBool (const std::string &value) |
| static bool | CheckInt (const std::string &value) |
| static bool | CheckNull (const std::string &value) |
| static bool | CheckNumber (const std::string &value) |
| static bool | CheckValue (Type type, const std::string &value) |
| static JsonValuePtr | Create (const std::string &value) |
| static JsonValuePtr | Create (double value) |
| static JsonValuePtr | Create (float value) |
| static JsonValuePtr | Create (int value) |
| static JsonValuePtr | Create (long value) |
| static JsonValuePtr | CreateRaw (Type type, const std::string &value) |
| static JsonValuePtr | False () |
| static JsonValuePtr | Null () |
| static std::string | ToString (double value) |
| static std::string | ToString (float value) |
| static std::string | ToString (int value) |
| static std::string | ToString (long value) |
| static JsonValuePtr | True () |
Friends | |
| class | StructuralJsonParser |
Definition at line 34 of file JsonValue.h.
| enum Type |
| Enumerator | |
|---|---|
| eString | |
| eNumber | |
| eBool | |
| eNull | |
Definition at line 39 of file JsonValue.h.
| JsonValue | ( | const std::string & | value | ) |
| JsonValue | ( | int | value | ) |
Definition at line 34 of file JsonValue.cpp.
| JsonValue | ( | long | value | ) |
Definition at line 38 of file JsonValue.cpp.
Definition at line 42 of file JsonValue.cpp.
| JsonValue | ( | double | value | ) |
Definition at line 46 of file JsonValue.cpp.
| bool asBool | ( | ) | const |
Definition at line 256 of file JsonValue.cpp.
| float asFloat | ( | ) | const |
| int asInt | ( | ) | const |
| std::string asString | ( | ) | const |
Definition at line 226 of file JsonValue.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 118 of file JsonValue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements JsonData.
Definition at line 272 of file JsonValue.cpp.
Here is the call graph for this function:
|
static |
Definition at line 72 of file JsonValue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 107 of file JsonValue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| JsonValue::Type getType | ( | ) |
Definition at line 279 of file JsonValue.cpp.
|
static |
| std::string rawValue | ( | ) |
Definition at line 266 of file JsonValue.cpp.
| JsonValuePtr toSharedPtr | ( | ) | const |
|
static |
Definition at line 217 of file JsonValue.cpp.
|
static |
Definition at line 208 of file JsonValue.cpp.
|
static |
Definition at line 190 of file JsonValue.cpp.
|
static |
Definition at line 199 of file JsonValue.cpp.
|
static |
|
overridevirtual |
Implements JsonData.
Definition at line 166 of file JsonValue.cpp.
Here is the call graph for this function:
|
friend |
Definition at line 36 of file JsonValue.h.