#include <tinyxml.h>
Inheritance diagram for TiXmlAttribute:


Public Member Functions | |
| TiXmlAttribute () | |
| TiXmlAttribute (const char *_name, const char *_value) | |
| const char * | Name () const |
| const char * | Value () const |
| const int | IntValue () const |
| const double | DoubleValue () const |
| int | QueryIntValue (int *value) const |
| int | QueryDoubleValue (double *value) const |
| void | SetName (const char *_name) |
| void | SetValue (const char *_value) |
| void | SetIntValue (int value) |
| void | SetDoubleValue (double value) |
| TiXmlAttribute * | Next () const |
| TiXmlAttribute * | Previous () const |
| bool | operator== (const TiXmlAttribute &rhs) const |
| bool | operator< (const TiXmlAttribute &rhs) const |
| bool | operator> (const TiXmlAttribute &rhs) const |
| virtual const char * | Parse (const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) |
| virtual void | Print (FILE *cfile, int depth) const |
| virtual void | StreamOut (TIXML_OSTREAM *out) const |
| void | SetDocument (TiXmlDocument *doc) |
|
|
Construct an empty attribute.
|
|
||||||||||||
|
Construct an attribute with a name and value.
|
|
|
Return the value of this attribute, converted to a double.
|
|
|
Return the value of this attribute, converted to an integer.
|
|
|
Return the name of this attribute.
|
|
|
Get the next sibling attribute in the DOM. Returns null at end.
|
|
|
Get the previous sibling attribute in the DOM. Returns null at beginning.
|
|
|
QueryDoubleValue examines the value string. See QueryIntValue().
|
|
|
QueryIntValue examines the value string. It is an alternative to the IntValue() method with richer error checking. If the value is an integer, it is stored in 'value' and the call returns TIXML_SUCCESS. If it is not an integer, it returns TIXML_WRONG_TYPE. A specialized but useful call. Note that for success it returns 0, which is the opposite of almost all other TinyXml calls. |
|
|
Set the value from a double.
|
|
|
Set the value from an integer.
|
|
|
Set the name of this attribute.
|
|
|
Set the value.
|
|
|
Return the value of this attribute.
|
1.4.0