RapidXmlReaderNode Class Reference

#include <ArmarXCore/core/rapidxml/wrapper/RapidXmlReader.h>

Public Member Functions

bool attribute_as_bool (const char *attrName, const std::string &trueValue, const std::string &falseValue) const
 
float attribute_as_float (const char *attrName) const
 
bool attribute_as_optional_bool (const char *name, const std::string &trueValue, const std::string &falseValue, bool defaultValue) const
 
uint32_t attribute_as_uint (const char *attrName) const
 
std::string attribute_value (const char *attrName) const
 
std::string attribute_value_or_default (const char *attrName, const std::string &defaultValue) const
 
RapidXmlReaderNode first_node (const char *name=nullptr) const
 
std::string first_node_value (const char *nodeName=nullptr) const
 
std::string first_node_value_or_default (const char *name, const std::string &defaultValue) const
 
RapidXmlReaderNode first_node_with_attr_value (const char *tagName, const char *attrName, const char *attrValue) const
 
std::vector< std::pair< std::string, std::string > > get_all_attributes () const
 
rapidxml::xml_nodeget_node_ptr () const
 get_node_ptr only for legacy code. More...
 
std::vector< std::string > getChildPaths () const
 
std::string getParentPath () const
 
std::string getPath () const
 
bool has_attribute (const char *attrName) const
 
bool has_attribute_with_value (const char *attrName, const char *attrValue) const
 
bool has_node (const char *nodeName) const
 
bool is_valid () const
 
std::string name () const
 
RapidXmlReaderNode next_sibling (const char *name=nullptr) const
 
void nodes (const char *name, std::vector< RapidXmlReaderNode > &vec) const
 
std::vector< RapidXmlReaderNodenodes (const char *name1, const char *name2) const
 
std::vector< RapidXmlReaderNodenodes (const char *name1, const char *name2, const char *name3) const
 
void nodes (const char *name1, const char *name2, std::vector< RapidXmlReaderNode > &vec) const
 
std::vector< RapidXmlReaderNodenodes (const char *name=nullptr) const
 
RapidXmlReaderNode parent_node () const
 
std::string toString () const
 
rapidxml::node_type type ()
 
std::string value () const
 
float value_as_float () const
 
int16_t value_as_int16 () const
 
int32_t value_as_int32 () const
 
uint16_t value_as_uint16 () const
 
uint32_t value_as_uint32 () const
 

Static Public Member Functions

static RapidXmlReaderNode NullNode ()
 

Friends

class RapidXmlReader
 

Detailed Description

Definition at line 68 of file RapidXmlReader.h.

Member Function Documentation

◆ attribute_as_bool()

bool attribute_as_bool ( const char *  attrName,
const std::string &  trueValue,
const std::string &  falseValue 
) const
inline

Definition at line 238 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ attribute_as_float()

float attribute_as_float ( const char *  attrName) const
inline

Definition at line 282 of file RapidXmlReader.h.

◆ attribute_as_optional_bool()

bool attribute_as_optional_bool ( const char *  name,
const std::string &  trueValue,
const std::string &  falseValue,
bool  defaultValue 
) const
inline

Definition at line 256 of file RapidXmlReader.h.

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

◆ attribute_as_uint()

uint32_t attribute_as_uint ( const char *  attrName) const
inline

Definition at line 287 of file RapidXmlReader.h.

◆ attribute_value()

std::string attribute_value ( const char *  attrName) const
inline

Definition at line 198 of file RapidXmlReader.h.

+ Here is the caller graph for this function:

◆ attribute_value_or_default()

std::string attribute_value_or_default ( const char *  attrName,
const std::string &  defaultValue 
) const
inline

Definition at line 225 of file RapidXmlReader.h.

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

◆ first_node()

RapidXmlReaderNode first_node ( const char *  name = nullptr) const
inline

Definition at line 140 of file RapidXmlReader.h.

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

◆ first_node_value()

std::string first_node_value ( const char *  nodeName = nullptr) const
inline

Definition at line 361 of file RapidXmlReader.h.

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

◆ first_node_value_or_default()

std::string first_node_value_or_default ( const char *  name,
const std::string &  defaultValue 
) const
inline

Definition at line 374 of file RapidXmlReader.h.

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

◆ first_node_with_attr_value()

RapidXmlReaderNode first_node_with_attr_value ( const char *  tagName,
const char *  attrName,
const char *  attrValue 
) const
inline

Definition at line 146 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ get_all_attributes()

std::vector<std::pair<std::string, std::string> > get_all_attributes ( ) const
inline

Definition at line 295 of file RapidXmlReader.h.

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

◆ get_node_ptr()

rapidxml::xml_node* get_node_ptr ( ) const
inline

get_node_ptr only for legacy code.

Returns
internal pointer

Definition at line 128 of file RapidXmlReader.h.

◆ getChildPaths()

std::vector<std::string> getChildPaths ( ) const
inline

Definition at line 435 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ getParentPath()

std::string getParentPath ( ) const
inline

Definition at line 397 of file RapidXmlReader.h.

+ Here is the caller graph for this function:

◆ getPath()

std::string getPath ( ) const
inline

Definition at line 411 of file RapidXmlReader.h.

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

◆ has_attribute()

bool has_attribute ( const char *  attrName) const
inline

Definition at line 209 of file RapidXmlReader.h.

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

◆ has_attribute_with_value()

bool has_attribute_with_value ( const char *  attrName,
const char *  attrValue 
) const
inline

Definition at line 214 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ has_node()

bool has_node ( const char *  nodeName) const
inline

Definition at line 203 of file RapidXmlReader.h.

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

◆ is_valid()

bool is_valid ( ) const
inline

Definition at line 392 of file RapidXmlReader.h.

+ Here is the caller graph for this function:

◆ name()

std::string name ( ) const
inline

Definition at line 349 of file RapidXmlReader.h.

+ Here is the caller graph for this function:

◆ next_sibling()

RapidXmlReaderNode next_sibling ( const char *  name = nullptr) const
inline

Definition at line 386 of file RapidXmlReader.h.

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

◆ nodes() [1/5]

void nodes ( const char *  name,
std::vector< RapidXmlReaderNode > &  vec 
) const
inline

Definition at line 165 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ nodes() [2/5]

std::vector<RapidXmlReaderNode> nodes ( const char *  name1,
const char *  name2 
) const
inline

Definition at line 181 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ nodes() [3/5]

std::vector<RapidXmlReaderNode> nodes ( const char *  name1,
const char *  name2,
const char *  name3 
) const
inline

Definition at line 187 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ nodes() [4/5]

void nodes ( const char *  name1,
const char *  name2,
std::vector< RapidXmlReaderNode > &  vec 
) const
inline

Definition at line 173 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ nodes() [5/5]

std::vector<RapidXmlReaderNode> nodes ( const char *  name = nullptr) const
inline

Definition at line 158 of file RapidXmlReader.h.

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

◆ NullNode()

static RapidXmlReaderNode NullNode ( )
inlinestatic

Definition at line 119 of file RapidXmlReader.h.

+ Here is the caller graph for this function:

◆ parent_node()

RapidXmlReaderNode parent_node ( ) const
inline

Definition at line 133 of file RapidXmlReader.h.

◆ toString()

std::string toString ( ) const
inline

Definition at line 111 of file RapidXmlReader.h.

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

◆ type()

rapidxml::node_type type ( )
inline

Definition at line 355 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ value()

std::string value ( ) const
inline

Definition at line 313 of file RapidXmlReader.h.

+ Here is the caller graph for this function:

◆ value_as_float()

float value_as_float ( ) const
inline

Definition at line 319 of file RapidXmlReader.h.

◆ value_as_int16()

int16_t value_as_int16 ( ) const
inline

Definition at line 343 of file RapidXmlReader.h.

◆ value_as_int32()

int32_t value_as_int32 ( ) const
inline

Definition at line 337 of file RapidXmlReader.h.

◆ value_as_uint16()

uint16_t value_as_uint16 ( ) const
inline

Definition at line 331 of file RapidXmlReader.h.

+ Here is the call graph for this function:

◆ value_as_uint32()

uint32_t value_as_uint32 ( ) const
inline

Definition at line 325 of file RapidXmlReader.h.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ RapidXmlReader

friend class RapidXmlReader
friend

Definition at line 70 of file RapidXmlReader.h.


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