|
#include <ArmarXGui/libraries/StructuralJson/JsonValue.h>
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 38 of file JsonValue.h.
JsonValue | ( | const std::string & | value | ) |
JsonValue | ( | int | value | ) |
Definition at line 33 of file JsonValue.cpp.
JsonValue | ( | long | value | ) |
Definition at line 37 of file JsonValue.cpp.
Definition at line 41 of file JsonValue.cpp.
JsonValue | ( | double | value | ) |
Definition at line 45 of file JsonValue.cpp.
bool asBool | ( | ) | const |
Definition at line 229 of file JsonValue.cpp.
float asFloat | ( | ) | const |
int asInt | ( | ) | const |
std::string asString | ( | ) | const |
Definition at line 202 of file JsonValue.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 105 of file JsonValue.cpp.
|
overridevirtual |
Implements JsonData.
Definition at line 243 of file JsonValue.cpp.
|
static |
Definition at line 65 of file JsonValue.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 95 of file JsonValue.cpp.
|
static |
JsonValue::Type getType | ( | ) |
Definition at line 249 of file JsonValue.cpp.
|
static |
std::string rawValue | ( | ) |
Definition at line 238 of file JsonValue.cpp.
JsonValuePtr toSharedPtr | ( | ) | const |
|
static |
Definition at line 194 of file JsonValue.cpp.
|
static |
Definition at line 186 of file JsonValue.cpp.
|
static |
Definition at line 170 of file JsonValue.cpp.
|
static |
Definition at line 178 of file JsonValue.cpp.
|
static |
|
overridevirtual |
Implements JsonData.
Definition at line 148 of file JsonValue.cpp.
|
friend |
Definition at line 36 of file JsonValue.h.