Panda3D
Public Member Functions | List of all members
TiXmlAttribute Class Reference

An attribute is a name-value pair. More...

Inheritance diagram for TiXmlAttribute:
TiXmlBase

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...
 
- Public Member Functions inherited from TiXmlBase
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

- Public Types inherited from TiXmlBase
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 Public Member Functions inherited from TiXmlBase
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...
 

Detailed Description

An attribute is a name-value pair.

Elements have an arbitrary number of attributes, each with a unique name.

Note
The attributes are not TiXmlNodes, since they are not part of the tinyXML document object model. There are other suggested ways to look at this problem.

Member Function Documentation

◆ __init__() [1/3]

__init__ ( )

Construct an empty attribute.

◆ __init__() [2/3]

__init__ ( str  _name,
str  _value 
)

Construct an attribute with a name and value.

◆ __init__() [3/3]

__init__ ( str  _name,
str  _value 
)

std::string constructor.

Return the name of this attribute.

◆ DoubleValue()

double DoubleValue ( )

◆ IntValue()

int IntValue ( )

Return the value of this attribute, converted to a double.

◆ Name()

str Name ( )

Return the value of this attribute.

◆ NameTStr()

str NameTStr ( )

Set the name of this attribute.

◆ Next() [1/2]

TiXmlAttribute Next ( )

◆ Next() [2/2]

const TiXmlAttribute Next ( )

Get the next sibling attribute in the DOM. Returns null at end.

◆ operator >()

bool operator > ( const TiXmlAttribute  rhs)

◆ operator<()

bool operator< ( const TiXmlAttribute  rhs)

◆ operator==()

bool operator== ( const TiXmlAttribute  rhs)

◆ Previous() [1/2]

TiXmlAttribute Previous ( )

◆ Previous() [2/2]

const TiXmlAttribute Previous ( )

Get the previous sibling attribute in the DOM. Returns null at beginning.

◆ SetDocument()

SetDocument ( TiXmlDocument  doc)

◆ SetDoubleValue()

SetDoubleValue ( double  _value)

◆ SetIntValue()

SetIntValue ( int  _value)

Set the value from a double.

◆ SetName() [1/2]

SetName ( str  _name)

◆ SetName() [2/2]

SetName ( str  _name)

STL std::string form.

Set the value.

◆ SetValue() [1/2]

SetValue ( str  _value)

◆ SetValue() [2/2]

SetValue ( str  _value)

STL std::string form.

Set the value from an integer.

◆ Value()

str Value ( )

Return the value of this attribute.

◆ ValueStr()

str ValueStr ( )

Return the value of this attribute, converted to an integer.