DefaultRapidXmlReaderNode Class Reference

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

Public Member Functions

DefaultRapidXmlReaderNode add_node_at (RapidXmlReaderNode node, size_t position)
 
DefaultRapidXmlReaderNode add_node_at (std::vector< RapidXmlReaderNode > added_nodes, size_t position)
 
DefaultRapidXmlReaderNode add_node_at_end (DefaultRapidXmlReaderNode node)
 
DefaultRapidXmlReaderNode add_node_at_end (RapidXmlReaderNode node)
 
template<class T >
T attribute_as (const char *attrName) const
 
template<class T >
void attribute_as (const char *attrName, T &value) const
 
template<class T >
T attribute_as (const std::string &attrName) const
 
template<class T >
void attribute_as (const std::string &attrName, T &value) const
 
bool attribute_as_bool (const char *attrName, const std::string &trueValue, const std::string &falseValue) const
 
bool attribute_as_bool (const std::string &attrName, const std::string &trueValue, const std::string &falseValue) const
 
float attribute_as_float (const char *attrName) const
 
float attribute_as_float (const std::string &attrName) const
 
bool attribute_as_optional_bool (const char *name, const std::string &trueValue, const std::string &falseValue, bool defaultValue) const
 
bool attribute_as_optional_bool (const std::string &name, const std::string &trueValue, const std::string &falseValue, bool defaultValue) const
 
std::string attribute_as_string (const char *attrName) const
 
std::string attribute_as_string (const std::string &attrName) const
 
uint32_t attribute_as_uint (const char *attrName) const
 
uint32_t attribute_as_uint (const std::string &attrName) const
 
 DefaultRapidXmlReaderNode ()=default
 
 DefaultRapidXmlReaderNode (const RapidXmlReaderNode &n)
 
 DefaultRapidXmlReaderNode (DefaultRapidXmlReaderNode &&)=default
 
 DefaultRapidXmlReaderNode (DefaultRapidXmlReaderNode const &)=default
 
 DefaultRapidXmlReaderNode (std::vector< RapidXmlReaderNode > rnodes)
 
DefaultRapidXmlReaderNode first_node (const char *name=nullptr) const
 
DefaultRapidXmlReaderNode first_node (const std::string &name) const
 
std::vector< std::string > getChildPaths () const
 
std::vector< std::string > getPaths () const
 
std::string getPathsString () const
 
bool has_attribute (const char *attrName) const
 
bool has_attribute (const std::string &attrName) const
 
bool is_valid () const
 
DefaultRapidXmlReaderNodeoperator= (DefaultRapidXmlReaderNode &&)=default
 
DefaultRapidXmlReaderNodeoperator= (DefaultRapidXmlReaderNode const &)=default
 
DefaultRapidXmlReaderNode remove_node_at (size_t pos)
 
bool value_as_bool (const std::string &trueValue, const std::string &falseValue) const
 
float value_as_float () const
 
int16_t value_as_int16 () const
 
int32_t value_as_int32 () const
 
bool value_as_optional_bool (const std::string &trueValue, const std::string &falseValue, bool defaultValue) const
 
std::string value_as_string () const
 
uint16_t value_as_uint16 () const
 
uint32_t value_as_uint32 () const
 

Detailed Description

Definition at line 36 of file DefaultRapidXmlReader.h.

Constructor & Destructor Documentation

◆ DefaultRapidXmlReaderNode() [1/5]

+ Here is the caller graph for this function:

◆ DefaultRapidXmlReaderNode() [2/5]

◆ DefaultRapidXmlReaderNode() [3/5]

◆ DefaultRapidXmlReaderNode() [4/5]

DefaultRapidXmlReaderNode ( std::vector< RapidXmlReaderNode rnodes)
inline

Definition at line 81 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ DefaultRapidXmlReaderNode() [5/5]

Definition at line 93 of file DefaultRapidXmlReader.h.

Member Function Documentation

◆ add_node_at() [1/2]

DefaultRapidXmlReaderNode add_node_at ( RapidXmlReaderNode  node,
size_t  position 
)
inline

Definition at line 401 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ add_node_at() [2/2]

DefaultRapidXmlReaderNode add_node_at ( std::vector< RapidXmlReaderNode added_nodes,
size_t  position 
)
inline

Definition at line 371 of file DefaultRapidXmlReader.h.

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

◆ add_node_at_end() [1/2]

DefaultRapidXmlReaderNode add_node_at_end ( DefaultRapidXmlReaderNode  node)
inline

Definition at line 366 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ add_node_at_end() [2/2]

DefaultRapidXmlReaderNode add_node_at_end ( RapidXmlReaderNode  node)
inline

Definition at line 362 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ attribute_as() [1/4]

T attribute_as ( const char *  attrName) const
inline

Definition at line 214 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ attribute_as() [2/4]

void attribute_as ( const char *  attrName,
T value 
) const
inline

Definition at line 205 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ attribute_as() [3/4]

T attribute_as ( const std::string &  attrName) const
inline

Definition at line 210 of file DefaultRapidXmlReader.h.

◆ attribute_as() [4/4]

void attribute_as ( const std::string &  attrName,
T value 
) const
inline

Definition at line 201 of file DefaultRapidXmlReader.h.

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

◆ attribute_as_bool() [1/2]

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

Definition at line 145 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ attribute_as_bool() [2/2]

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

Definition at line 141 of file DefaultRapidXmlReader.h.

◆ attribute_as_float() [1/2]

float attribute_as_float ( const char *  attrName) const
inline

Definition at line 225 of file DefaultRapidXmlReader.h.

◆ attribute_as_float() [2/2]

float attribute_as_float ( const std::string &  attrName) const
inline

Definition at line 221 of file DefaultRapidXmlReader.h.

◆ attribute_as_optional_bool() [1/2]

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

Definition at line 167 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ attribute_as_optional_bool() [2/2]

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

Definition at line 163 of file DefaultRapidXmlReader.h.

◆ attribute_as_string() [1/2]

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

Definition at line 196 of file DefaultRapidXmlReader.h.

◆ attribute_as_string() [2/2]

std::string attribute_as_string ( const std::string &  attrName) const
inline

Definition at line 192 of file DefaultRapidXmlReader.h.

◆ attribute_as_uint() [1/2]

uint32_t attribute_as_uint ( const char *  attrName) const
inline

Definition at line 234 of file DefaultRapidXmlReader.h.

◆ attribute_as_uint() [2/2]

uint32_t attribute_as_uint ( const std::string &  attrName) const
inline

Definition at line 230 of file DefaultRapidXmlReader.h.

◆ first_node() [1/2]

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

Definition at line 101 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ first_node() [2/2]

DefaultRapidXmlReaderNode first_node ( const std::string &  name) const
inline

Definition at line 97 of file DefaultRapidXmlReader.h.

◆ getChildPaths()

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

Definition at line 327 of file DefaultRapidXmlReader.h.

+ Here is the caller graph for this function:

◆ getPaths()

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

Definition at line 338 of file DefaultRapidXmlReader.h.

+ Here is the caller graph for this function:

◆ getPathsString()

std::string getPathsString ( ) const
inline

Definition at line 348 of file DefaultRapidXmlReader.h.

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

◆ has_attribute() [1/2]

bool has_attribute ( const char *  attrName) const
inline

Definition at line 128 of file DefaultRapidXmlReader.h.

◆ has_attribute() [2/2]

bool has_attribute ( const std::string &  attrName) const
inline

Definition at line 124 of file DefaultRapidXmlReader.h.

+ Here is the caller graph for this function:

◆ is_valid()

bool is_valid ( ) const
inline

Definition at line 322 of file DefaultRapidXmlReader.h.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

◆ operator=() [2/2]

DefaultRapidXmlReaderNode& operator= ( DefaultRapidXmlReaderNode const &  )
default

◆ remove_node_at()

DefaultRapidXmlReaderNode remove_node_at ( size_t  pos)
inline

Definition at line 406 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ value_as_bool()

bool value_as_bool ( const std::string &  trueValue,
const std::string &  falseValue 
) const
inline

Definition at line 278 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ value_as_float()

float value_as_float ( ) const
inline

Definition at line 245 of file DefaultRapidXmlReader.h.

◆ value_as_int16()

int16_t value_as_int16 ( ) const
inline

Definition at line 272 of file DefaultRapidXmlReader.h.

◆ value_as_int32()

int32_t value_as_int32 ( ) const
inline

Definition at line 266 of file DefaultRapidXmlReader.h.

◆ value_as_optional_bool()

bool value_as_optional_bool ( const std::string &  trueValue,
const std::string &  falseValue,
bool  defaultValue 
) const
inline

Definition at line 304 of file DefaultRapidXmlReader.h.

+ Here is the call graph for this function:

◆ value_as_string()

std::string value_as_string ( ) const
inline

Definition at line 239 of file DefaultRapidXmlReader.h.

◆ value_as_uint16()

uint16_t value_as_uint16 ( ) const
inline

Definition at line 260 of file DefaultRapidXmlReader.h.

◆ value_as_uint32()

uint32_t value_as_uint32 ( ) const
inline

Definition at line 254 of file DefaultRapidXmlReader.h.


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