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

** An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name. 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 ()
 < 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...
 
- Public Member Functions inherited from TiXmlBase
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

- 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 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...
 

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.

◆ DoubleValue()

double DoubleValue ( )

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

◆ IntValue()

int IntValue ( )

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

◆ Name()

str Name ( )

< Return the name of this attribute.

◆ NameTStr()

str NameTStr ( )

Get the tinyxml string representation.

◆ 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.

◆ Print()

Print ( FILE  cfile,
int  depth,
String  str 
)

depth/

◆ SetDocument()

SetDocument ( TiXmlDocument  doc)

[internal use] Set the document pointer so the attribute can report errors.

◆ SetDoubleValue()

SetDoubleValue ( double  _value)

< Set the value from a double.

◆ SetIntValue()

SetIntValue ( int  _value)

< Set the value from an integer.

◆ SetName() [1/2]

SetName ( str  _name)

< Set the name of this attribute.

◆ SetName() [2/2]

SetName ( str  _name)

STL std::string form.

◆ SetValue() [1/2]

SetValue ( str  _value)

< Set the value.

◆ SetValue() [2/2]

SetValue ( str  _value)

STL std::string form.

◆ Value()

str Value ( )

< Return the value of this attribute.

◆ ValueStr()

str ValueStr ( )

< Return the value of this attribute.