Panda3D
|
** An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name. More...
Public Member Functions | |
__init__ () | |
Construct an empty attribute. More... | |
__init__ (str _name, str _value) | |
Construct an attribute with a name and value. More... | |
__init__ (str _name, str _value) | |
std::string constructor. More... | |
double | DoubleValue () |
< Return the value of this attribute, converted to a double. More... | |
int | IntValue () |
< Return the value of this attribute, converted to an integer. More... | |
str | Name () |
< Return the name of this attribute. More... | |
str | NameTStr () |
Get the tinyxml string representation. More... | |
TiXmlAttribute | Next () |
const TiXmlAttribute | Next () |
Get the next sibling attribute in the DOM. Returns null at end. More... | |
bool | operator< (const TiXmlAttribute rhs) |
bool | operator== (const TiXmlAttribute rhs) |
bool | operator> (const TiXmlAttribute rhs) |
TiXmlAttribute | Previous () |
const TiXmlAttribute | Previous () |
Get the previous sibling attribute in the DOM. Returns null at beginning. More... | |
Print (FILE cfile, int depth, String str) | |
depth/ More... | |
SetDocument (TiXmlDocument doc) | |
[internal use] Set the document pointer so the attribute can report errors. More... | |
SetDoubleValue (double _value) | |
< Set the value from a double. More... | |
SetIntValue (int _value) | |
< Set the value from an integer. More... | |
SetName (str _name) | |
< Set the name of this attribute. More... | |
SetName (str _name) | |
STL std::string form. More... | |
SetValue (str _value) | |
< Set the value. More... | |
SetValue (str _value) | |
STL std::string form. More... | |
str | Value () |
< Return the value of this attribute. More... | |
str | ValueStr () |
< Return the value of this attribute. More... | |
![]() | |
int | Column () |
< See Row() More... | |
GetUserData () | |
< Get a pointer to arbitrary user data. More... | |
GetUserData () | |
< Get a pointer to arbitrary user data. More... | |
str | Parse (str p, TiXmlParsingData data, TiXmlEncoding encoding) |
Print (FILE cfile, int depth) | |
** All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL mode, std::string in STL mode.) Either or both cfile and str can be null. More... | |
int | Row () |
** Return the position, in the original source file, of this node or attribute. The row and column are 1-based. (That is the first row and first column is 1,1). If the returns values are 0 or less, then the parser does not have a row and column value. More... | |
Additional Inherited Members | |
![]() | |
enum | { TIXML_NO_ERROR = 0, TIXML_ERROR = 1, TIXML_ERROR_OPENING_FILE = 2, TIXML_ERROR_PARSING_ELEMENT = 3, TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME = 4, TIXML_ERROR_READING_ELEMENT_VALUE = 5, TIXML_ERROR_READING_ATTRIBUTES = 6, TIXML_ERROR_PARSING_EMPTY = 7, TIXML_ERROR_READING_END_TAG = 8, TIXML_ERROR_PARSING_UNKNOWN = 9, TIXML_ERROR_PARSING_COMMENT = 10, TIXML_ERROR_PARSING_DECLARATION = 11, TIXML_ERROR_DOCUMENT_EMPTY = 12, TIXML_ERROR_EMBEDDED_NULL = 13, TIXML_ERROR_PARSING_CDATA = 14, TIXML_ERROR_DOCUMENT_TOP_ONLY = 15, TIXML_ERROR_STRING_COUNT = 16 } |
![]() | |
static | EncodeString (str str, String out) |
** Expands entities in a string. Note this should not contian the tag's '<', '>', etc, or they will be transformed into entities! */ More... | |
static bool | IsWhiteSpaceCondensed () |
Return the current white space setting. More... | |
static | SetCondenseWhiteSpace (bool condense) |
** The world does not agree on whether white space should be kept or not. In order to make everyone happy, these global, static functions are provided to set whether or not TinyXml will condense all white space into a single space or not. The default is to condense. Note changing this value is not thread safe. */ More... | |
** An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.
__init__ | ( | ) |
Construct an empty attribute.
__init__ | ( | str | _name, |
str | _value | ||
) |
Construct an attribute with a name and value.
__init__ | ( | str | _name, |
str | _value | ||
) |
std::string constructor.
double DoubleValue | ( | ) |
< Return the value of this attribute, converted to a double.
int IntValue | ( | ) |
< Return the value of this attribute, converted to an integer.
str Name | ( | ) |
< Return the name of this attribute.
str NameTStr | ( | ) |
Get the tinyxml string representation.
TiXmlAttribute Next | ( | ) |
const TiXmlAttribute Next | ( | ) |
Get the next sibling attribute in the DOM. Returns null at end.
bool operator< | ( | const TiXmlAttribute | rhs | ) |
bool operator== | ( | const TiXmlAttribute | rhs | ) |
bool operator> | ( | const TiXmlAttribute | rhs | ) |
TiXmlAttribute Previous | ( | ) |
const TiXmlAttribute Previous | ( | ) |
Get the previous sibling attribute in the DOM. Returns null at beginning.
( | FILE | cfile, | |
int | depth, | ||
String | str | ||
) |
depth/
SetDocument | ( | TiXmlDocument | doc | ) |
[internal use] Set the document pointer so the attribute can report errors.
SetDoubleValue | ( | double | _value | ) |
< Set the value from a double.
SetIntValue | ( | int | _value | ) |
< Set the value from an integer.
SetName | ( | str | _name | ) |
< Set the name of this attribute.
SetName | ( | str | _name | ) |
STL std::string form.
SetValue | ( | str | _value | ) |
< Set the value.
SetValue | ( | str | _value | ) |
STL std::string form.
str Value | ( | ) |
< Return the value of this attribute.
str ValueStr | ( | ) |
< Return the value of this attribute.