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
 
DefaultRapidXmlReaderNode & operator= (DefaultRapidXmlReaderNode &&)=default
 
DefaultRapidXmlReaderNode & operator= (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
 

Constructor & Destructor Documentation

◆ DefaultRapidXmlReaderNode() [1/5]

◆ DefaultRapidXmlReaderNode() [2/5]

◆ DefaultRapidXmlReaderNode() [3/5]

◆ DefaultRapidXmlReaderNode() [4/5]

DefaultRapidXmlReaderNode ( std::vector< RapidXmlReaderNode > rnodes)
inline

◆ DefaultRapidXmlReaderNode() [5/5]

Member Function Documentation

◆ add_node_at() [1/2]

DefaultRapidXmlReaderNode add_node_at ( RapidXmlReaderNode node,
size_t position )
inline

◆ add_node_at() [2/2]

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

◆ add_node_at_end() [1/2]

DefaultRapidXmlReaderNode add_node_at_end ( DefaultRapidXmlReaderNode node)
inline

◆ add_node_at_end() [2/2]

DefaultRapidXmlReaderNode add_node_at_end ( RapidXmlReaderNode node)
inline

◆ attribute_as() [1/4]

template<class T>
T attribute_as ( const char * attrName) const
inline

◆ attribute_as() [2/4]

template<class T>
void attribute_as ( const char * attrName,
T & value ) const
inline

◆ attribute_as() [3/4]

template<class T>
T attribute_as ( const std::string & attrName) const
inline

◆ attribute_as() [4/4]

template<class T>
void attribute_as ( const std::string & attrName,
T & value ) const
inline

◆ attribute_as_bool() [1/2]

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

◆ attribute_as_bool() [2/2]

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

◆ attribute_as_float() [1/2]

float attribute_as_float ( const char * attrName) const
inline

◆ attribute_as_float() [2/2]

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

◆ 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

◆ 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

◆ attribute_as_string() [1/2]

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

◆ attribute_as_string() [2/2]

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

◆ attribute_as_uint() [1/2]

uint32_t attribute_as_uint ( const char * attrName) const
inline

◆ attribute_as_uint() [2/2]

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

◆ first_node() [1/2]

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

◆ first_node() [2/2]

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

◆ getChildPaths()

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

◆ getPaths()

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

◆ getPathsString()

std::string getPathsString ( ) const
inline

◆ has_attribute() [1/2]

bool has_attribute ( const char * attrName) const
inline

◆ has_attribute() [2/2]

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

◆ is_valid()

bool is_valid ( ) const
inline

◆ operator=() [1/2]

◆ operator=() [2/2]

DefaultRapidXmlReaderNode & operator= ( DefaultRapidXmlReaderNode const & )
default

◆ remove_node_at()

DefaultRapidXmlReaderNode remove_node_at ( size_t pos)
inline

◆ value_as_bool()

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

◆ value_as_float()

float value_as_float ( ) const
inline

◆ value_as_int16()

int16_t value_as_int16 ( ) const
inline

◆ value_as_int32()

int32_t value_as_int32 ( ) const
inline

◆ value_as_optional_bool()

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

◆ value_as_string()

std::string value_as_string ( ) const
inline

◆ value_as_uint16()

uint16_t value_as_uint16 ( ) const
inline

◆ value_as_uint32()

uint32_t value_as_uint32 ( ) const
inline

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