|
|
#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 |
| enum Type |
| JsonValue | ( | const std::string & | value | ) |
| JsonValue | ( | int | value | ) |
| JsonValue | ( | long | value | ) |
| JsonValue | ( | double | value | ) |
| bool asBool | ( | ) | const |
| float asFloat | ( | ) | const |
| int asInt | ( | ) | const |
| std::string asString | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
overridevirtual |
Implements JsonData.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| JsonValue::Type getType | ( | ) |
|
static |
| std::string rawValue | ( | ) |
| JsonValuePtr toSharedPtr | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
overridevirtual |
Implements JsonData.
|
friend |