|
#include <ArmarXGui/libraries/StructuralJson/JsonObject.h>
Public Member Functions | |
void | add (const std::string &key, const JsonArray &value) |
void | add (const std::string &key, const JsonDataPtr &value) |
void | add (const std::string &key, const JsonValue &value) |
void | clear () |
JsonDataPtr | clone () override |
JsonDataPtr | get (const std::string &key) |
std::vector< std::string > | getKeys () const |
JsonObject () | |
bool | remove (const std::string &key) |
void | set (const std::string &key, const JsonDataPtr &value) |
void | set (const std::string &key, const JsonValue &value) |
uint | size () |
JsonObjectPtr | 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 |
Friends | |
class | JPathNavigator |
Definition at line 36 of file JsonObject.h.
JsonObject | ( | ) |
void add | ( | const std::string & | key, |
const JsonArray & | value | ||
) |
void add | ( | const std::string & | key, |
const JsonDataPtr & | value | ||
) |
Definition at line 45 of file JsonObject.cpp.
void add | ( | const std::string & | key, |
const JsonValue & | value | ||
) |
void clear | ( | ) |
Definition at line 116 of file JsonObject.cpp.
|
overridevirtual |
Implements JsonData.
Definition at line 127 of file JsonObject.cpp.
JsonDataPtr get | ( | const std::string & | key | ) |
Definition at line 97 of file JsonObject.cpp.
std::vector< std::string > getKeys | ( | ) | const |
bool remove | ( | const std::string & | key | ) |
Definition at line 85 of file JsonObject.cpp.
void set | ( | const std::string & | key, |
const JsonDataPtr & | value | ||
) |
Definition at line 65 of file JsonObject.cpp.
void set | ( | const std::string & | key, |
const JsonValue & | value | ||
) |
uint size | ( | ) |
Definition at line 111 of file JsonObject.cpp.
JsonObjectPtr toSharedPtr | ( | ) | const |
|
overridevirtual |
Implements JsonData.
Definition at line 31 of file JsonObject.cpp.
|
friend |
Definition at line 38 of file JsonObject.h.