xml_attribute Class Reference

xml_attribute Class Reference

#include <pugixml.hpp>

Class Description

Definition at line 273 of file pugixml.hpp.

Public Member Functions

 xml_attribute ()
 
 xml_attribute (xml_attribute_struct *attr)
 
 operator unspecified_bool_type () const
 
bool operator! () const
 
bool operator== (const xml_attribute &r) const
 
bool operator!= (const xml_attribute &r) const
 
bool operator< (const xml_attribute &r) const
 
bool operator> (const xml_attribute &r) const
 
bool operator<= (const xml_attribute &r) const
 
bool operator>= (const xml_attribute &r) const
 
bool empty () const
 
const char_tname () const
 
const char_tvalue () const
 
const char_tas_string (const char_t *def="") const
 
int as_int (int def=0) const
 
unsigned int as_uint (unsigned int def=0) const
 
double as_double (double def=0) const
 
float as_float (float def=0) const
 
bool as_bool (bool def=false) const
 
bool set_name (const char_t *rhs)
 
bool set_value (const char_t *rhs)
 
bool set_value (int rhs)
 
bool set_value (unsigned int rhs)
 
bool set_value (double rhs)
 
bool set_value (bool rhs)
 
xml_attributeoperator= (const char_t *rhs)
 
xml_attributeoperator= (int rhs)
 
xml_attributeoperator= (unsigned int rhs)
 
xml_attributeoperator= (double rhs)
 
xml_attributeoperator= (bool rhs)
 
xml_attribute next_attribute () const
 
xml_attribute previous_attribute () const
 
size_t hash_value () const
 
xml_attribute_struct * internal_object () const
 

Friends

class xml_attribute_iterator
 
class xml_node
 

Constructor & Destructor Documentation

xml_attribute ( xml_attribute_struct *  attr)
explicit

Member Function Documentation

bool as_bool ( bool  def = false) const
double as_double ( double  def = 0) const
float as_float ( float  def = 0) const
int as_int ( int  def = 0) const
const char_t* as_string ( const char_t def = "") const
unsigned int as_uint ( unsigned int  def = 0) const
bool empty ( ) const
size_t hash_value ( ) const
xml_attribute_struct* internal_object ( ) const
const char_t* name ( ) const
xml_attribute next_attribute ( ) const
operator unspecified_bool_type ( ) const
bool operator! ( ) const
bool operator!= ( const xml_attribute r) const
bool operator< ( const xml_attribute r) const
bool operator<= ( const xml_attribute r) const
xml_attribute& operator= ( const char_t rhs)
xml_attribute& operator= ( int  rhs)
xml_attribute& operator= ( unsigned int  rhs)
xml_attribute& operator= ( double  rhs)
xml_attribute& operator= ( bool  rhs)
bool operator== ( const xml_attribute r) const
bool operator> ( const xml_attribute r) const
bool operator>= ( const xml_attribute r) const
xml_attribute previous_attribute ( ) const
bool set_name ( const char_t rhs)
bool set_value ( const char_t rhs)
bool set_value ( int  rhs)
bool set_value ( unsigned int  rhs)
bool set_value ( double  rhs)
bool set_value ( bool  rhs)
const char_t* value ( ) const

Friends And Related Function Documentation

friend class xml_attribute_iterator
friend

Definition at line 275 of file pugixml.hpp.

friend class xml_node
friend

Definition at line 276 of file pugixml.hpp.


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