Panda3D
|
An attribute is a name-value pair. More...
#include <pandadoc.hpp>
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 () |
int | IntValue () |
Return the value of this attribute, converted to a double. More... | |
str | Name () |
Return the value of this attribute. More... | |
str | NameTStr () |
Set the name of this attribute. 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... | |
SetDocument (TiXmlDocument doc) | |
SetDoubleValue (double _value) | |
SetIntValue (int _value) | |
Set the value from a double. More... | |
SetName (str _name) | |
SetName (str _name) | |
STL std::string form. More... | |
SetValue (str _value) | |
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, converted to an integer. More... | |
![]() | |
int | Column () |
Get a pointer to arbitrary user data. More... | |
GetUserData () | |
Get a pointer to arbitrary user data. More... | |
GetUserData () | |
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. 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 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. 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.
Return the name of this attribute.
double DoubleValue | ( | ) |
int IntValue | ( | ) |
Return the value of this attribute, converted to a double.
str Name | ( | ) |
Return the value of this attribute.
str NameTStr | ( | ) |
Set the name of this attribute.
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.
SetDocument | ( | TiXmlDocument | doc | ) |
SetDoubleValue | ( | double | _value | ) |
SetIntValue | ( | int | _value | ) |
Set the value from a double.
SetName | ( | str | _name | ) |
SetName | ( | str | _name | ) |
STL std::string form.
Set the value.
SetValue | ( | str | _value | ) |
SetValue | ( | str | _value | ) |
STL std::string form.
Set the value from an integer.
str Value | ( | ) |
Return the value of this attribute.
str ValueStr | ( | ) |
Return the value of this attribute, converted to an integer.