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 181 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 219 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ asFloat()

float asFloat ( ) const

Definition at line 209 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 214 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ asObject()

JsonObjectPtr asObject ( ) const

Definition at line 170 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 203 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 192 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 93 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 224 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 230 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ getKey()

std::string getKey ( ) const

Definition at line 236 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 64 of file JPathNavigator.cpp.

◆ isInt()

bool isInt ( ) const

Definition at line 82 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ isNull()

bool isNull ( ) const

Definition at line 70 of file JPathNavigator.cpp.

◆ isNumber()

bool isNumber ( ) const

Definition at line 76 of file JPathNavigator.cpp.

◆ isObject()

bool isObject ( ) const

Definition at line 48 of file JPathNavigator.cpp.

◆ isString()

bool isString ( ) const

Definition at line 58 of file JPathNavigator.cpp.

+ Here is the caller graph for this function:

◆ isValid()

bool isValid ( ) const

Definition at line 88 of file JPathNavigator.cpp.

+ Here is the caller graph for this function:

◆ isValue()

bool isValue ( ) const

Definition at line 53 of file JPathNavigator.cpp.

+ Here is the caller graph for this function:

◆ remove() [1/2]

bool remove ( const std::string &  key)

Definition at line 160 of file JPathNavigator.cpp.

+ Here is the call graph for this function:

◆ remove() [2/2]

void remove ( uint  index)

Definition at line 165 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 101 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 110 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: