|
#include <ArmarXGui/libraries/StructuralJson/JPathNavigator.h>
Public Member Functions | |
JsonArrayPtr | asArray () const |
bool | asBool () const |
float | asFloat () const |
int | asInt () const |
JsonObjectPtr | asObject () const |
std::string | asString () const |
JsonValuePtr | asValue () const |
void | checkValid () const |
JsonDataPtr | getData () const |
int | getIndex () const |
std::string | getKey () const |
bool | isArray () const |
bool | isBool () const |
bool | isInt () const |
bool | isNull () const |
bool | isNumber () const |
bool | isObject () const |
bool | isString () const |
bool | isValid () const |
bool | isValue () const |
JPathNavigator (const JsonDataPtr &data) | |
bool | remove (const std::string &key) |
void | remove (uint index) |
std::vector< JPathNavigator > | select (const std::string &expr, bool limitToOne=false) const |
JPathNavigator | selectSingleNode (const std::string &expr) const |
Definition at line 35 of file JPathNavigator.h.
JPathNavigator | ( | const JsonDataPtr & | data | ) |
Definition at line 38 of file JPathNavigator.cpp.
JsonArrayPtr asArray | ( | ) | const |
Definition at line 200 of file JPathNavigator.cpp.
bool asBool | ( | ) | const |
float asFloat | ( | ) | const |
Definition at line 230 of file JPathNavigator.cpp.
int asInt | ( | ) | const |
JsonObjectPtr asObject | ( | ) | const |
Definition at line 188 of file JPathNavigator.cpp.
std::string asString | ( | ) | const |
Definition at line 224 of file JPathNavigator.cpp.
JsonValuePtr asValue | ( | ) | const |
Definition at line 212 of file JPathNavigator.cpp.
void checkValid | ( | ) | const |
Definition at line 103 of file JPathNavigator.cpp.
JsonDataPtr getData | ( | ) | const |
Definition at line 248 of file JPathNavigator.cpp.
int getIndex | ( | ) | const |
std::string getKey | ( | ) | const |
bool isArray | ( | ) | const |
Definition at line 43 of file JPathNavigator.cpp.
bool isBool | ( | ) | const |
Definition at line 68 of file JPathNavigator.cpp.
bool isInt | ( | ) | const |
bool isNull | ( | ) | const |
Definition at line 75 of file JPathNavigator.cpp.
bool isNumber | ( | ) | const |
Definition at line 82 of file JPathNavigator.cpp.
bool isObject | ( | ) | const |
Definition at line 49 of file JPathNavigator.cpp.
bool isString | ( | ) | const |
bool isValid | ( | ) | const |
bool isValue | ( | ) | const |
bool remove | ( | const std::string & | key | ) |
void remove | ( | uint | index | ) |
std::vector< JPathNavigator > select | ( | const std::string & | expr, |
bool | limitToOne = false |
||
) | const |
Definition at line 112 of file JPathNavigator.cpp.
JPathNavigator selectSingleNode | ( | const std::string & | expr | ) | const |
Definition at line 122 of file JPathNavigator.cpp.