|
#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 181 of file JPathNavigator.cpp.
bool asBool | ( | ) | const |
float asFloat | ( | ) | const |
Definition at line 209 of file JPathNavigator.cpp.
int asInt | ( | ) | const |
JsonObjectPtr asObject | ( | ) | const |
Definition at line 170 of file JPathNavigator.cpp.
std::string asString | ( | ) | const |
Definition at line 203 of file JPathNavigator.cpp.
JsonValuePtr asValue | ( | ) | const |
Definition at line 192 of file JPathNavigator.cpp.
void checkValid | ( | ) | const |
Definition at line 93 of file JPathNavigator.cpp.
JsonDataPtr getData | ( | ) | const |
Definition at line 224 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 64 of file JPathNavigator.cpp.
bool isInt | ( | ) | const |
bool isNull | ( | ) | const |
Definition at line 70 of file JPathNavigator.cpp.
bool isNumber | ( | ) | const |
Definition at line 76 of file JPathNavigator.cpp.
bool isObject | ( | ) | const |
Definition at line 48 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 101 of file JPathNavigator.cpp.
JPathNavigator selectSingleNode | ( | const std::string & | expr | ) | const |
Definition at line 110 of file JPathNavigator.cpp.