arsa  2.7
Public Member Functions | Friends | List of all members
pugi::xml_attribute Class Reference

#include <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=PUGIXML_TEXT("")) 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 (long rhs)
 
bool set_value (unsigned long rhs)
 
bool set_value (double rhs)
 
bool set_value (float rhs)
 
bool set_value (bool rhs)
 
xml_attributeoperator= (const char_t *rhs)
 
xml_attributeoperator= (int rhs)
 
xml_attributeoperator= (unsigned int rhs)
 
xml_attributeoperator= (long rhs)
 
xml_attributeoperator= (unsigned long rhs)
 
xml_attributeoperator= (double rhs)
 
xml_attributeoperator= (float 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
 

Detailed Description

Definition at line 341 of file pugixml.hpp.

Constructor & Destructor Documentation

◆ xml_attribute() [1/2]

pugi::xml_attribute::xml_attribute ( )

◆ xml_attribute() [2/2]

pugi::xml_attribute::xml_attribute ( xml_attribute_struct *  attr)
explicit

Member Function Documentation

◆ as_bool()

bool pugi::xml_attribute::as_bool ( bool  def = false) const

◆ as_double()

double pugi::xml_attribute::as_double ( double  def = 0) const

◆ as_float()

float pugi::xml_attribute::as_float ( float  def = 0) const

◆ as_int()

int pugi::xml_attribute::as_int ( int  def = 0) const

◆ as_string()

const char_t* pugi::xml_attribute::as_string ( const char_t def = PUGIXML_TEXT("")) const

◆ as_uint()

unsigned int pugi::xml_attribute::as_uint ( unsigned int  def = 0) const

◆ empty()

bool pugi::xml_attribute::empty ( ) const

◆ hash_value()

size_t pugi::xml_attribute::hash_value ( ) const

◆ internal_object()

xml_attribute_struct* pugi::xml_attribute::internal_object ( ) const

◆ name()

const char_t* pugi::xml_attribute::name ( ) const

◆ next_attribute()

xml_attribute pugi::xml_attribute::next_attribute ( ) const

◆ operator unspecified_bool_type()

pugi::xml_attribute::operator unspecified_bool_type ( ) const

◆ operator!()

bool pugi::xml_attribute::operator! ( ) const

◆ operator!=()

◆ operator<()

bool pugi::xml_attribute::operator< ( const xml_attribute r) const

◆ operator<=()

bool pugi::xml_attribute::operator<= ( const xml_attribute r) const

◆ operator=() [1/8]

xml_attribute& pugi::xml_attribute::operator= ( const char_t rhs)

◆ operator=() [2/8]

xml_attribute& pugi::xml_attribute::operator= ( int  rhs)

◆ operator=() [3/8]

xml_attribute& pugi::xml_attribute::operator= ( unsigned int  rhs)

◆ operator=() [4/8]

xml_attribute& pugi::xml_attribute::operator= ( long  rhs)

◆ operator=() [5/8]

xml_attribute& pugi::xml_attribute::operator= ( unsigned long  rhs)

◆ operator=() [6/8]

xml_attribute& pugi::xml_attribute::operator= ( double  rhs)

◆ operator=() [7/8]

xml_attribute& pugi::xml_attribute::operator= ( float  rhs)

◆ operator=() [8/8]

xml_attribute& pugi::xml_attribute::operator= ( bool  rhs)

◆ operator==()

bool pugi::xml_attribute::operator== ( const xml_attribute r) const

◆ operator>()

bool pugi::xml_attribute::operator> ( const xml_attribute r) const

◆ operator>=()

bool pugi::xml_attribute::operator>= ( const xml_attribute r) const

◆ previous_attribute()

xml_attribute pugi::xml_attribute::previous_attribute ( ) const

◆ set_name()

bool pugi::xml_attribute::set_name ( const char_t rhs)

◆ set_value() [1/8]

bool pugi::xml_attribute::set_value ( const char_t rhs)

◆ set_value() [2/8]

bool pugi::xml_attribute::set_value ( int  rhs)

◆ set_value() [3/8]

bool pugi::xml_attribute::set_value ( unsigned int  rhs)

◆ set_value() [4/8]

bool pugi::xml_attribute::set_value ( long  rhs)

◆ set_value() [5/8]

bool pugi::xml_attribute::set_value ( unsigned long  rhs)

◆ set_value() [6/8]

bool pugi::xml_attribute::set_value ( double  rhs)

◆ set_value() [7/8]

bool pugi::xml_attribute::set_value ( float  rhs)

◆ set_value() [8/8]

bool pugi::xml_attribute::set_value ( bool  rhs)

◆ value()

const char_t* pugi::xml_attribute::value ( ) const

Friends And Related Function Documentation

◆ xml_attribute_iterator

friend class xml_attribute_iterator
friend

Definition at line 343 of file pugixml.hpp.

◆ xml_node

friend class xml_node
friend

Definition at line 344 of file pugixml.hpp.


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