
Note: xml_attribute does not allocate any memory for the attribute it wraps; it only wraps a pointer to existing attribute.
Public Member Functions | |
| xml_attribute () | |
| Default ctor. | |
| operator unspecified_bool_type () const | |
| Safe bool conversion. | |
| bool | operator! () const |
| bool | operator== (const xml_attribute &r) const |
| Compare wrapped pointer to the attribute to the pointer that is wrapped by r. | |
| bool | operator!= (const xml_attribute &r) const |
| Compare wrapped pointer to the attribute to the pointer that is wrapped by r. | |
| bool | operator< (const xml_attribute &r) const |
| Compare wrapped pointer to the attribute to the pointer that is wrapped by r. | |
| bool | operator> (const xml_attribute &r) const |
| Compare wrapped pointer to the attribute to the pointer that is wrapped by r. | |
| bool | operator<= (const xml_attribute &r) const |
| Compare wrapped pointer to the attribute to the pointer that is wrapped by r. | |
| bool | operator>= (const xml_attribute &r) const |
| Compare wrapped pointer to the attribute to the pointer that is wrapped by r. | |
| xml_attribute | next_attribute () const |
| Get next attribute in attribute list of node that contains the attribute. | |
| xml_attribute | previous_attribute () const |
| Get previous attribute in attribute list of node that contains the attribute. | |
| int | as_int () const |
| Cast attribute value as int. | |
| unsigned int | as_uint () const |
| Cast attribute value as unsigned int. | |
| double | as_double () const |
| Cast attribute value as double. | |
| float | as_float () const |
| Cast attribute value as float. | |
| bool | as_bool () const |
| Cast attribute value as bool. | |
|
PUGIXML_DEPRECATED unsigned int | document_order () const |
| xml_attribute & | operator= (const char_t *rhs) |
| Set attribute value to rhs. | |
| xml_attribute & | operator= (int rhs) |
| Set attribute value to rhs. | |
| xml_attribute & | operator= (unsigned int rhs) |
| Set attribute value to rhs. | |
| xml_attribute & | operator= (double rhs) |
| Set attribute value to rhs. | |
| xml_attribute & | operator= (bool rhs) |
| Set attribute value to either 'true' or 'false' (depends on whether rhs is true or false). | |
| bool | set_name (const char_t *rhs) |
| Set attribute name to rhs. | |
| bool | set_value (const char_t *rhs) |
| Set attribute value to rhs. | |
| bool | set_value (int rhs) |
| Set attribute value to rhs. | |
| bool | set_value (unsigned int rhs) |
| Set attribute value to rhs. | |
| bool | set_value (double rhs) |
| Set attribute value to rhs. | |
| bool | set_value (bool rhs) |
| Set attribute value to either 'true' or 'false' (depends on whether rhs is true or false). | |
| bool | empty () const |
| Check if attribute is empty. | |
| const char_t * | name () const |
| Get attribute name. | |
| const char_t * | value () const |
| Get attribute value. | |
Friends | |
| class | xml_attribute_iterator |
| class | xml_node |
|
|
Default ctor. Constructs an empty attribute. |
|
|
Safe bool conversion. Allows xml_node to be used in a context where boolean variable is expected, such as 'if (node)'. |
|
|
Compare wrapped pointer to the attribute to the pointer that is wrapped by r.
|
|
|
Compare wrapped pointer to the attribute to the pointer that is wrapped by r.
|
|
|
Compare wrapped pointer to the attribute to the pointer that is wrapped by r.
|
|
|
Compare wrapped pointer to the attribute to the pointer that is wrapped by r.
|
|
|
Compare wrapped pointer to the attribute to the pointer that is wrapped by r.
|
|
|
Compare wrapped pointer to the attribute to the pointer that is wrapped by r.
|
|
|
Get next attribute in attribute list of node that contains the attribute.
|
|
|
Get previous attribute in attribute list of node that contains the attribute.
|
|
|
Cast attribute value as int.
|
|
|
Cast attribute value as unsigned int.
|
|
|
Cast attribute value as double.
|
|
|
Cast attribute value as float.
|
|
|
Cast attribute value as bool. Returns true for attributes with values that start with '1', 't', 'T', 'y', 'Y', returns false for other attributes.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to either 'true' or 'false' (depends on whether rhs is true or false).
|
|
|
Set attribute name to rhs.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to rhs.
|
|
|
Set attribute value to either 'true' or 'false' (depends on whether rhs is true or false).
|
|
|
Check if attribute is empty.
|
|
|
Get attribute name.
|
|
|
Get attribute value.
|
1.4.6-NO