JPathNavigator Class Reference

#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< JPathNavigatorselect (const std::string &expr, bool limitToOne=false) const
 
JPathNavigator selectSingleNode (const std::string &expr) const
 

Detailed Description

Definition at line 35 of file JPathNavigator.h.

Constructor & Destructor Documentation

◆ JPathNavigator()

JPathNavigator ( const JsonDataPtr data)

Definition at line 38 of file JPathNavigator.cpp.

Member Function Documentation

◆ asArray()

JsonArrayPtr asArray ( ) const

Definition at line 200 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ asBool()

bool asBool ( ) const

Definition at line 242 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ asFloat()

float asFloat ( ) const

Definition at line 230 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ asInt()

int asInt ( ) const

Definition at line 236 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ asObject()

JsonObjectPtr asObject ( ) const

Definition at line 188 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ asString()

std::string asString ( ) const

Definition at line 224 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ asValue()

JsonValuePtr asValue ( ) const

Definition at line 212 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkValid()

void checkValid ( ) const

Definition at line 103 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getData()

JsonDataPtr getData ( ) const

Definition at line 248 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIndex()

int getIndex ( ) const

Definition at line 255 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ getKey()

std::string getKey ( ) const

Definition at line 262 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ isArray()

bool isArray ( ) const

Definition at line 43 of file JPathNavigator.cpp.

◆ isBool()

bool isBool ( ) const

Definition at line 68 of file JPathNavigator.cpp.

◆ isInt()

bool isInt ( ) const

Definition at line 89 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ isNull()

bool isNull ( ) const

Definition at line 75 of file JPathNavigator.cpp.

◆ isNumber()

bool isNumber ( ) const

Definition at line 82 of file JPathNavigator.cpp.

◆ isObject()

bool isObject ( ) const

Definition at line 49 of file JPathNavigator.cpp.

◆ isString()

bool isString ( ) const

Definition at line 61 of file JPathNavigator.cpp.

+ Here is the caller graph for this function:

◆ isValid()

bool isValid ( ) const

Definition at line 97 of file JPathNavigator.cpp.

+ Here is the caller graph for this function:

◆ isValue()

bool isValue ( ) const

Definition at line 55 of file JPathNavigator.cpp.

+ Here is the caller graph for this function:

◆ remove() [1/2]

bool remove ( const std::string &  key)

Definition at line 176 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ remove() [2/2]

void remove ( uint  index)

Definition at line 182 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ select()

std::vector< JPathNavigator > select ( const std::string &  expr,
bool  limitToOne = false 
) const

Definition at line 112 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectSingleNode()

JPathNavigator selectSingleNode ( const std::string &  expr) const

Definition at line 122 of file JPathNavigator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: