|
| | SXmlAttr (pugi::xml_attribute attr) |
| | Constructor for SXmlAttr.
|
| |
| | SXmlAttr (const IXmlAttr *src) |
| | Constructor for SXmlAttr from an IXmlAttr pointer.
|
| |
| | SXmlAttr (const SXmlAttr &src) |
| | Copy constructor for SXmlAttr.
|
| |
| | SXmlAttr (LPVOID pData=NULL) |
| | Constructor for SXmlAttr with an optional private data pointer.
|
| |
| LPVOID | GetPrivPtr () SCONST OVERRIDE |
| | Gets the private data pointer.
|
| |
| BOOL | Empty () SCONST OVERRIDE |
| | Checks if the attribute is empty.
|
| |
| const wchar_t * | Name () SCONST OVERRIDE |
| | Gets the attribute name.
|
| |
| const wchar_t * | Value () SCONST OVERRIDE |
| | Gets the attribute value.
|
| |
| BOOL | set_userdata (int data) OVERRIDE |
| | Sets user data for the attribute.
|
| |
| int | get_userdata () SCONST OVERRIDE |
| | Gets user data for the attribute.
|
| |
| IXmlAttr * | Next () OVERRIDE |
| | Gets the next attribute in the attribute list of the parent node.
|
| |
| IXmlAttr * | Prev () OVERRIDE |
| | Gets the previous attribute in the attribute list of the parent node.
|
| |
| int | AsInt (int def=0) OVERRIDE |
| | Converts the attribute value to an integer.
|
| |
| unsigned int | AsUint (int def=0) OVERRIDE |
| | Converts the attribute value to an unsigned integer.
|
| |
| float | AsFloat (float def=0.0f) OVERRIDE |
| | Converts the attribute value to a float.
|
| |
| double | AsDouble (double def=0.0) OVERRIDE |
| | Converts the attribute value to a double.
|
| |
| BOOL | AsBool (BOOL def=FALSE) OVERRIDE |
| | Converts the attribute value to a boolean.
|
| |
| | operator bool () const |
| | Checks if the attribute is empty.
|
| |
| bool | empty () const |
| | Checks if the attribute is empty.
|
| |
| const wchar_t * | name () const |
| | Gets the attribute name.
|
| |
| const wchar_t * | value () const |
| | Gets the attribute value.
|
| |
| const wchar_t * | as_string (const wchar_t *def=L"") const |
| | Gets the attribute value as a string.
|
| |
| int | as_int (int def=0) const |
| | Converts the attribute value to an integer.
|
| |
| unsigned int | as_uint (unsigned int def=0) const |
| | Converts the attribute value to an unsigned integer.
|
| |
| double | as_double (double def=0) const |
| | Converts the attribute value to a double.
|
| |
| float | as_float (float def=0) const |
| | Converts the attribute value to a float.
|
| |
| bool | as_bool (bool def=false) const |
| | Converts the attribute value to a boolean.
|
| |
| bool | set_name (const wchar_t *rhs) |
| | Sets the attribute name.
|
| |
| bool | set_value (const wchar_t *rhs) |
| | Sets the attribute value.
|
| |
| bool | set_value (int rhs) |
| | Sets the attribute value with type conversion (integer).
|
| |
| bool | set_value (unsigned int rhs) |
| | Sets the attribute value with type conversion (unsigned integer).
|
| |
| bool | set_value (long rhs) |
| | Sets the attribute value with type conversion (long).
|
| |
| bool | set_value (unsigned long rhs) |
| | Sets the attribute value with type conversion (unsigned long).
|
| |
| bool | set_value (double rhs) |
| | Sets the attribute value with type conversion (double).
|
| |
| bool | set_value (double rhs, int precision) |
| | Sets the attribute value with type conversion (double with precision).
|
| |
| bool | set_value (float rhs) |
| | Sets the attribute value with type conversion (float).
|
| |
| bool | set_value (float rhs, int precision) |
| | Sets the attribute value with type conversion (float with precision).
|
| |
| bool | set_value (bool rhs) |
| | Sets the attribute value with type conversion (boolean).
|
| |
| SXmlAttr | next_attribute () const |
| | Gets the next attribute in the attribute list of the parent node.
|
| |
| SXmlAttr | previous_attribute () const |
| | Gets the previous attribute in the attribute list of the parent node.
|
| |
Class representing an XML attribute.
This class provides methods to manipulate and access XML attributes.
Definition at line 19 of file SXml.h.