#include <tinyxml.h>
Inheritance diagram for TiXmlElement:
Public Types | |
enum | NodeType { DOCUMENT, ELEMENT, COMMENT, UNKNOWN, TEXT, DECLARATION, TYPECOUNT } |
enum | { TIXML_NO_ERROR = 0, TIXML_ERROR, TIXML_ERROR_OPENING_FILE, TIXML_ERROR_OUT_OF_MEMORY, TIXML_ERROR_PARSING_ELEMENT, TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME, TIXML_ERROR_READING_ELEMENT_VALUE, TIXML_ERROR_READING_ATTRIBUTES, TIXML_ERROR_PARSING_EMPTY, TIXML_ERROR_READING_END_TAG, TIXML_ERROR_PARSING_UNKNOWN, TIXML_ERROR_PARSING_COMMENT, TIXML_ERROR_PARSING_DECLARATION, TIXML_ERROR_DOCUMENT_EMPTY, TIXML_ERROR_EMBEDDED_NULL, TIXML_ERROR_STRING_COUNT } |
Public Member Functions | |
TiXmlElement (const char *in_value) | |
Construct an element. | |
TiXmlElement (const TiXmlElement &) | |
void | operator= (const TiXmlElement &base) |
virtual | ~TiXmlElement () |
const char * | Attribute (const char *name) const |
const char * | Attribute (const char *name, int *i) const |
const char * | Attribute (const char *name, double *d) const |
int | QueryIntAttribute (const char *name, int *value) const |
int | QueryDoubleAttribute (const char *name, double *value) const |
QueryDoubleAttribute examines the attribute - see QueryIntAttribute(). | |
int | QueryDoubleAttribute (const char *name, float *value) const |
QueryFloatAttribute examines the attribute - see QueryIntAttribute(). | |
void | SetAttribute (const char *name, const char *value) |
void | SetAttribute (const char *name, int value) |
void | SetDoubleAttribute (const char *name, double value) |
void | RemoveAttribute (const char *name) |
const TiXmlAttribute * | FirstAttribute () const |
Access the first attribute in this element. | |
TiXmlAttribute * | FirstAttribute () |
const TiXmlAttribute * | LastAttribute () const |
Access the last attribute in this element. | |
TiXmlAttribute * | LastAttribute () |
virtual TiXmlNode * | Clone () const |
Creates a new Element and returns it - the returned element is a copy. | |
virtual void | Print (FILE *cfile, int depth) const |
virtual const char * | Parse (const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) |
const char * | Value () const |
void | SetValue (const char *_value) |
void | Clear () |
Delete all the children of this node. Does not affect 'this'. | |
TiXmlNode * | Parent () |
One step up the DOM. | |
const TiXmlNode * | Parent () const |
const TiXmlNode * | FirstChild () const |
The first child of this node. Will be null if there are no children. | |
TiXmlNode * | FirstChild () |
const TiXmlNode * | FirstChild (const char *value) const |
The first child of this node with the matching 'value'. Will be null if none found. | |
TiXmlNode * | FirstChild (const char *value) |
The first child of this node with the matching 'value'. Will be null if none found. | |
const TiXmlNode * | LastChild () const |
TiXmlNode * | LastChild () |
The last child of this node. Will be null if there are no children. | |
const TiXmlNode * | LastChild (const char *value) const |
TiXmlNode * | LastChild (const char *value) |
The last child of this node matching 'value'. Will be null if there are no children. | |
const TiXmlNode * | IterateChildren (TiXmlNode *previous) const |
TiXmlNode * | IterateChildren (TiXmlNode *previous) |
const TiXmlNode * | IterateChildren (const char *value, TiXmlNode *previous) const |
This flavor of IterateChildren searches for children with a particular 'value'. | |
TiXmlNode * | IterateChildren (const char *value, TiXmlNode *previous) |
TiXmlNode * | InsertEndChild (const TiXmlNode &addThis) |
TiXmlNode * | LinkEndChild (TiXmlNode *addThis) |
TiXmlNode * | InsertBeforeChild (TiXmlNode *beforeThis, const TiXmlNode &addThis) |
TiXmlNode * | InsertAfterChild (TiXmlNode *afterThis, const TiXmlNode &addThis) |
TiXmlNode * | ReplaceChild (TiXmlNode *replaceThis, const TiXmlNode &withThis) |
bool | RemoveChild (TiXmlNode *removeThis) |
Delete a child of this node. | |
const TiXmlNode * | PreviousSibling () const |
Navigate to a sibling node. | |
TiXmlNode * | PreviousSibling () |
const TiXmlNode * | PreviousSibling (const char *) const |
Navigate to a sibling node. | |
TiXmlNode * | PreviousSibling (const char *) |
const TiXmlNode * | NextSibling () const |
Navigate to a sibling node. | |
TiXmlNode * | NextSibling () |
const TiXmlNode * | NextSibling (const char *) const |
Navigate to a sibling node with the given 'value'. | |
TiXmlNode * | NextSibling (const char *) |
const TiXmlElement * | NextSiblingElement () const |
TiXmlElement * | NextSiblingElement () |
const TiXmlElement * | NextSiblingElement (const char *) const |
TiXmlElement * | NextSiblingElement (const char *) |
const TiXmlElement * | FirstChildElement () const |
Convenience function to get through elements. | |
TiXmlElement * | FirstChildElement () |
const TiXmlElement * | FirstChildElement (const char *value) const |
Convenience function to get through elements. | |
TiXmlElement * | FirstChildElement (const char *value) |
virtual int | Type () const |
const TiXmlDocument * | GetDocument () const |
TiXmlDocument * | GetDocument () |
bool | NoChildren () const |
Returns true if this node has no children. | |
const TiXmlDocument * | ToDocument () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlDocument * | ToDocument () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlElement * | ToElement () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlElement * | ToElement () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlComment * | ToComment () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlComment * | ToComment () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlUnknown * | ToUnknown () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlUnknown * | ToUnknown () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlText * | ToText () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlText * | ToText () |
Cast to a more defined type. Will return null not of the requested type. | |
const TiXmlDeclaration * | ToDeclaration () const |
Cast to a more defined type. Will return null not of the requested type. | |
TiXmlDeclaration * | ToDeclaration () |
Cast to a more defined type. Will return null not of the requested type. | |
int | Row () const |
int | Column () const |
See Row(). | |
void | SetUserData (void *user) |
void * | GetUserData () |
Static Public Member Functions | |
static void | SetCondenseWhiteSpace (bool condense) |
static bool | IsWhiteSpaceCondensed () |
Return the current white space setting. | |
Static Public Attributes | |
static const int | utf8ByteTable [256] |
Protected Member Functions | |
void | CopyTo (TiXmlElement *target) const |
void | ClearThis () |
virtual void | StreamOut (TIXML_OSTREAM *out) const |
const char * | ReadValue (const char *in, TiXmlParsingData *prevData, TiXmlEncoding encoding) |
void | CopyTo (TiXmlNode *target) const |
TiXmlNode * | Identify (const char *start, TiXmlEncoding encoding) |
const TIXML_STRING & | SValue () const |
Static Protected Member Functions | |
static const char * | SkipWhiteSpace (const char *, TiXmlEncoding encoding) |
static bool | IsWhiteSpace (char c) |
static const char * | ReadName (const char *p, TIXML_STRING *name, TiXmlEncoding encoding) |
static const char * | ReadText (const char *in, TIXML_STRING *text, bool ignoreWhiteSpace, const char *endTag, bool ignoreCase, TiXmlEncoding encoding) |
static const char * | GetEntity (const char *in, char *value, int *length, TiXmlEncoding encoding) |
static const char * | GetChar (const char *p, char *_value, int *length, TiXmlEncoding encoding) |
static void | PutString (const TIXML_STRING &str, TIXML_OSTREAM *out) |
static void | PutString (const TIXML_STRING &str, TIXML_STRING *out) |
static bool | StringEqual (const char *p, const char *endTag, bool ignoreCase, TiXmlEncoding encoding) |
static int | IsAlpha (unsigned char anyByte, TiXmlEncoding encoding) |
static int | IsAlphaNum (unsigned char anyByte, TiXmlEncoding encoding) |
static int | ToLower (int v, TiXmlEncoding encoding) |
static void | ConvertUTF32ToUTF8 (unsigned long input, char *output, int *length) |
Protected Attributes | |
TiXmlNode * | parent |
NodeType | type |
TiXmlNode * | firstChild |
TiXmlNode * | lastChild |
TIXML_STRING | value |
TiXmlNode * | prev |
TiXmlNode * | next |
TiXmlCursor | location |
void * | userData |
Field containing a generic user pointer. | |
Static Protected Attributes | |
static const char * | errorString [TIXML_ERROR_STRING_COUNT] |
Friends | |
TIXML_OSTREAM & | operator<< (TIXML_OSTREAM &out, const TiXmlNode &base) |
Definition at line 815 of file tinyxml.h.
|
|
The types of XML nodes supported by TinyXml. (All the unsupported types are picked up by UNKNOWN.) |
|
Construct an element.
Definition at line 605 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::lastChild, and TiXmlNode::value. Referenced by Clone(). |
|
Definition at line 623 of file tinyxml.cpp. References CopyTo(), TiXmlNode::firstChild, and TiXmlNode::lastChild. |
|
Definition at line 638 of file tinyxml.cpp. References ClearThis(). |
|
Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists. If the attribute exists and can be converted to an double, the double value will be put in the return 'd', if 'd' is non-null. Definition at line 681 of file tinyxml.cpp. References Attribute(). |
|
Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists. If the attribute exists and can be converted to an integer, the integer value will be put in the return 'i', if 'i' is non-null. Definition at line 667 of file tinyxml.cpp. References Attribute(). |
|
Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists. Definition at line 656 of file tinyxml.cpp. References TiXmlAttributeSet::Find(), and TiXmlAttribute::Value(). Referenced by Attribute(). |
|
Delete all the children of this node. Does not affect 'this'.
Definition at line 170 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::lastChild, and TiXmlNode::next. Referenced by ClearThis(), TiXmlDocument::LoadFile(), TiXmlDeclaration::operator=(), TiXmlComment::operator=(), and TiXmlDocument::operator=(). |
|
Definition at line 644 of file tinyxml.cpp. References TiXmlNode::Clear(), TiXmlAttributeSet::First(), and TiXmlAttributeSet::Remove(). Referenced by operator=(), and ~TiXmlElement(). |
|
Creates a new Element and returns it - the returned element is a copy.
Implements TiXmlNode. Definition at line 857 of file tinyxml.cpp. References CopyTo(), TiXmlElement(), and TiXmlNode::Value(). |
|
See Row().
Definition at line 180 of file tinyxml.h. References TiXmlCursor::col, and TiXmlBase::location. |
|
Definition at line 78 of file tinyxmlparser.cpp. Referenced by TiXmlBase::GetEntity(). |
|
Definition at line 163 of file tinyxml.cpp. References TiXmlNode::SetValue(), TiXmlBase::userData, and TiXmlNode::value. Referenced by TiXmlUnknown::CopyTo(), TiXmlDeclaration::CopyTo(), TiXmlText::CopyTo(), TiXmlComment::CopyTo(), and CopyTo(). |
|
Definition at line 834 of file tinyxml.cpp. References TiXmlNode::Clone(), TiXmlNode::CopyTo(), TiXmlAttributeSet::First(), TiXmlNode::firstChild, TiXmlNode::LinkEndChild(), TiXmlAttribute::Name(), TiXmlAttribute::Next(), TiXmlNode::NextSibling(), SetAttribute(), and TiXmlAttribute::Value(). Referenced by Clone(), operator=(), and TiXmlElement(). |
|
Definition at line 918 of file tinyxml.h. References TiXmlAttributeSet::First(). |
|
Access the first attribute in this element.
Definition at line 917 of file tinyxml.h. References TiXmlAttributeSet::First(). Referenced by CEGUI::TinyXMLDocument::processElement(). |
|
The first child of this node with the matching 'value'. Will be null if none found.
Definition at line 328 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
The first child of this node with the matching 'value'. Will be null if none found.
Definition at line 316 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 455 of file tinyxml.h. References TiXmlNode::firstChild. |
|
The first child of this node. Will be null if there are no children.
Definition at line 454 of file tinyxml.h. References TiXmlNode::firstChild. Referenced by TiXmlHandle::Child(), TiXmlHandle::FirstChild(), TiXmlNode::FirstChildElement(), TiXmlNode::IterateChildren(), TiXmlDocument::Print(), and TiXmlDocument::StreamOut(). |
|
Definition at line 510 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements.
Definition at line 496 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Definition at line 482 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements.
Definition at line 468 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). Referenced by TiXmlHandle::ChildElement(), TiXmlHandle::FirstChildElement(), CEGUI::TinyXMLDocument::processElement(), and TiXmlDocument::RootElement(). |
|
Definition at line 260 of file tinyxml.h. References TiXmlBase::GetEntity(), TIXML_ENCODING_UTF8, and TiXmlBase::utf8ByteTable. Referenced by TiXmlBase::ReadText(). |
|
Definition at line 593 of file tinyxml.cpp. References TiXmlNode::parent, and TiXmlNode::ToDocument(). |
|
Return a pointer to the Document this node lives in. Returns null if not in a document. Definition at line 581 of file tinyxml.cpp. References TiXmlNode::parent, and TiXmlNode::ToDocument(). Referenced by TiXmlNode::Identify(), TiXmlDeclaration::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), Parse(), ReadValue(), and SetAttribute(). |
|
Definition at line 413 of file tinyxmlparser.cpp. References TiXmlBase::ConvertUTF32ToUTF8(), TIXML_ENCODING_UTF8, and TIXML_STRING. Referenced by TiXmlBase::GetChar(). |
|
Definition at line 183 of file tinyxml.h. References TiXmlBase::userData. |
|
Definition at line 790 of file tinyxmlparser.cpp. References TiXmlNode::GetDocument(), TiXmlBase::IsAlpha(), TiXmlNode::parent, TiXmlDocument::SetError(), TiXmlBase::SkipWhiteSpace(), TiXmlBase::StringEqual(), TIXML_ENCODING_UNKNOWN, TiXmlBase::TIXML_ERROR_OUT_OF_MEMORY, TIXML_LOG, and TiXmlNode::TiXmlElement. Referenced by TiXmlDocument::Parse(), and ReadValue(). |
|
Add a new node related to this. Adds a child after the specified child. Returns a pointer to the new object or NULL if an error occured. Definition at line 240 of file tinyxml.cpp. References TiXmlNode::Clone(), TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
Add a new node related to this. Adds a child before the specified child. Returns a pointer to the new object or NULL if an error occured. Definition at line 214 of file tinyxml.cpp. References TiXmlNode::Clone(), TiXmlNode::firstChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
Add a new node related to this. Adds a child past the LastChild. Returns a pointer to the new object or NULL if an error occured. Definition at line 204 of file tinyxml.cpp. References TiXmlNode::Clone(), and TiXmlNode::LinkEndChild(). |
|
Definition at line 119 of file tinyxmlparser.cpp. Referenced by TiXmlNode::Identify(), and TiXmlBase::ReadName(). |
|
Definition at line 140 of file tinyxmlparser.cpp. Referenced by TiXmlBase::ReadName(). |
|
Definition at line 227 of file tinyxml.h. Referenced by TiXmlText::Blank(), TiXmlDeclaration::Parse(), TiXmlAttribute::Parse(), TiXmlBase::ReadText(), and TiXmlBase::SkipWhiteSpace(). |
|
Return the current white space setting.
Definition at line 159 of file tinyxml.h. Referenced by ReadValue(). |
|
Definition at line 401 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
This flavor of IterateChildren searches for children with a particular 'value'.
Definition at line 388 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
Definition at line 375 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
An alternate way to walk the children of a node. One way to iterate over nodes is: for( child = parent->FirstChild(); child; child = child->NextSibling() ) IterateChildren does the same thing with the syntax: child = 0; while( child = parent->IterateChildren( child ) ) IterateChildren takes the previous child as input and finds the next one. If the previous child is null, it returns the first. IterateChildren will return null when done. Definition at line 362 of file tinyxml.cpp. References TiXmlNode::FirstChild(), TiXmlNode::NextSibling(), and TiXmlNode::parent. |
|
Definition at line 920 of file tinyxml.h. References TiXmlAttributeSet::Last(). |
|
Access the last attribute in this element.
Definition at line 919 of file tinyxml.h. References TiXmlAttributeSet::Last(). |
|
The last child of this node matching 'value'. Will be null if there are no children.
Definition at line 351 of file tinyxml.cpp. References TiXmlNode::lastChild, TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 340 of file tinyxml.cpp. References TiXmlNode::lastChild, TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
The last child of this node. Will be null if there are no children.
Definition at line 460 of file tinyxml.h. References TiXmlNode::lastChild. |
|
Definition at line 459 of file tinyxml.h. References TiXmlNode::lastChild. |
|
Add a new node related to this. Adds a child past the LastChild. NOTE: the node to be added is passed by pointer, and will be henceforth owned (and deleted) by tinyXml. This method is efficient and avoids an extra copy, but should be used with care as it uses a different memory model than the other insert functions.
Definition at line 187 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. Referenced by CopyTo(), TiXmlNode::InsertEndChild(), TiXmlDocument::Parse(), and ReadValue(). |
|
Definition at line 425 of file tinyxml.cpp. References TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Navigate to a sibling node with the given 'value'.
Definition at line 414 of file tinyxml.cpp. References TiXmlNode::next, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 551 of file tinyxml.h. References TiXmlNode::next. |
|
Navigate to a sibling node.
Definition at line 550 of file tinyxml.h. References TiXmlNode::next. Referenced by TiXmlHandle::Child(), CopyTo(), TiXmlNode::FirstChildElement(), TiXmlNode::IterateChildren(), TiXmlNode::NextSiblingElement(), TiXmlDocument::Print(), Print(), TiXmlDocument::StreamOut(), and StreamOut(). |
|
Definition at line 566 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element. Definition at line 552 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Definition at line 538 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). |
|
Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element. Definition at line 524 of file tinyxml.cpp. References TiXmlNode::NextSibling(), and TiXmlNode::ToElement(). Referenced by TiXmlHandle::ChildElement(). |
|
Returns true if this node has no children.
Definition at line 602 of file tinyxml.h. References TiXmlNode::firstChild. |
|
Definition at line 631 of file tinyxml.cpp. References ClearThis(), and CopyTo(). |
|
Definition at line 452 of file tinyxml.h. References TiXmlNode::parent. |
|
One step up the DOM.
Definition at line 451 of file tinyxml.h. References TiXmlNode::parent. |
|
Implements TiXmlBase. Definition at line 999 of file tinyxmlparser.cpp. References TiXmlAttributeSet::Add(), TiXmlParsingData::Cursor(), TiXmlAttributeSet::Find(), TiXmlNode::GetDocument(), TiXmlBase::location, TiXmlAttribute::Name(), TiXmlAttribute::Parse(), TiXmlBase::ReadName(), ReadValue(), TiXmlAttribute::SetDocument(), TiXmlDocument::SetError(), TiXmlAttribute::SetValue(), TiXmlBase::SkipWhiteSpace(), TiXmlParsingData::Stamp(), TiXmlBase::StringEqual(), TiXmlBase::TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME, TiXmlBase::TIXML_ERROR_OUT_OF_MEMORY, TiXmlBase::TIXML_ERROR_PARSING_ELEMENT, TiXmlBase::TIXML_ERROR_PARSING_EMPTY, TiXmlBase::TIXML_ERROR_READING_ATTRIBUTES, TiXmlBase::TIXML_ERROR_READING_END_TAG, TIXML_STRING, TiXmlAttribute::Value(), and TiXmlNode::value. |
|
Definition at line 447 of file tinyxml.cpp. References TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Navigate to a sibling node.
Definition at line 436 of file tinyxml.cpp. References TiXmlNode::prev, TiXmlNode::SValue(), and TIXML_CAST_STRING. |
|
Definition at line 536 of file tinyxml.h. References TiXmlNode::prev. |
|
Navigate to a sibling node.
Definition at line 535 of file tinyxml.h. References TiXmlNode::prev. |
|
All TinyXml classes can print themselves to a filestream. This is a formatted print, and will insert tabs and newlines. (For an unformatted stream, use the << operator.) Implements TiXmlBase. Definition at line 752 of file tinyxml.cpp. References TiXmlAttributeSet::First(), TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlAttribute::Next(), TiXmlNode::NextSibling(), TiXmlBase::Print(), TiXmlAttribute::Print(), TiXmlNode::ToText(), and TiXmlNode::value. |
|
Definition at line 42 of file tinyxml.cpp. |
|
Definition at line 35 of file tinyxml.cpp. References TIXML_STRING. Referenced by TiXmlText::Print(), TiXmlAttribute::Print(), TiXmlDeclaration::StreamOut(), TiXmlText::StreamOut(), and TiXmlAttribute::StreamOut(). |
|
QueryFloatAttribute examines the attribute - see QueryIntAttribute().
Definition at line 864 of file tinyxml.h. References QueryDoubleAttribute(). |
|
QueryDoubleAttribute examines the attribute - see QueryIntAttribute().
Definition at line 705 of file tinyxml.cpp. References TiXmlAttributeSet::Find(), TiXmlAttribute::QueryDoubleValue(), and TIXML_NO_ATTRIBUTE. Referenced by QueryDoubleAttribute(). |
|
QueryIntAttribute examines the attribute - it is an alternative to the Attribute() method with richer error checking. If the attribute 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. If the attribute does not exist, then TIXML_NO_ATTRIBUTE is returned. Definition at line 695 of file tinyxml.cpp. References TiXmlAttributeSet::Find(), TiXmlAttribute::QueryIntValue(), and TIXML_NO_ATTRIBUTE. |
|
Definition at line 383 of file tinyxmlparser.cpp. References TiXmlBase::IsAlpha(), and TiXmlBase::IsAlphaNum(). Referenced by TiXmlAttribute::Parse(), and Parse(). |
|
Definition at line 549 of file tinyxmlparser.cpp. References TiXmlBase::GetChar(), TiXmlBase::IsWhiteSpace(), TiXmlBase::SkipWhiteSpace(), and TiXmlBase::StringEqual(). Referenced by TiXmlText::Parse(), TiXmlAttribute::Parse(), and TiXmlComment::Parse(). |
|
Definition at line 1120 of file tinyxmlparser.cpp. References TiXmlText::Blank(), TiXmlNode::GetDocument(), TiXmlNode::Identify(), TiXmlBase::IsWhiteSpaceCondensed(), TiXmlNode::LinkEndChild(), TiXmlBase::Parse(), TiXmlText::Parse(), TiXmlBase::SkipWhiteSpace(), TiXmlBase::StringEqual(), TiXmlBase::TIXML_ERROR_OUT_OF_MEMORY, and TiXmlBase::TIXML_ERROR_READING_ELEMENT_VALUE. Referenced by Parse(). |
|
Deletes an attribute with the given name. Definition at line 458 of file tinyxml.cpp. References TiXmlAttributeSet::Find(), and TiXmlAttributeSet::Remove(). |
|
Delete a child of this node.
Definition at line 294 of file tinyxml.cpp. References TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
Replace a child of this node. Returns a pointer to the new object or NULL if an error occured. Definition at line 266 of file tinyxml.cpp. References TiXmlNode::Clone(), TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlNode::next, TiXmlNode::parent, and TiXmlNode::prev. |
|
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. Generally, the row and column value will be set when the TiXmlDocument::Load(), TiXmlDocument::LoadFile(), or any TiXmlNode::Parse() is called. It will NOT be set when the DOM was created from operator>>. The values reflect the initial load. Once the DOM is modified programmatically (by adding or changing nodes and attributes) the new values will NOT update to reflect changes in the document. There is a minor performance cost to computing the row and column. Computation can be disabled if TiXmlDocument::SetTabSize() is called with 0 as the value.
Definition at line 179 of file tinyxml.h. References TiXmlBase::location, and TiXmlCursor::row. |
|
Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. Definition at line 715 of file tinyxml.cpp. References SetAttribute(). |
|
Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. Definition at line 731 of file tinyxml.cpp. References TiXmlAttributeSet::Add(), TiXmlAttributeSet::Find(), TiXmlNode::GetDocument(), TiXmlDocument::SetError(), TiXmlAttribute::SetValue(), TIXML_ENCODING_UNKNOWN, and TiXmlBase::TIXML_ERROR_OUT_OF_MEMORY. Referenced by CopyTo(), SetAttribute(), and SetDoubleAttribute(). |
|
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 values is not thread safe. |
|
Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. Definition at line 723 of file tinyxml.cpp. References SetAttribute(). |
|
Definition at line 182 of file tinyxml.h. References TiXmlBase::userData. |
|
Changes the value of the node. Defined as: Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string Definition at line 436 of file tinyxml.h. References TiXmlNode::value. Referenced by TiXmlNode::CopyTo(), and TiXmlText::TiXmlText(). |
|
Definition at line 301 of file tinyxmlparser.cpp. References TiXmlBase::IsWhiteSpace(), TIXML_ENCODING_UTF8, TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, and TIXML_UTF_LEAD_2. Referenced by TiXmlNode::Identify(), TiXmlDeclaration::Parse(), TiXmlAttribute::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), Parse(), TiXmlDocument::Parse(), TiXmlBase::ReadText(), and ReadValue(). |
|
Implements TiXmlBase. Definition at line 803 of file tinyxml.cpp. References TiXmlAttributeSet::First(), TiXmlNode::firstChild, TiXmlAttribute::Next(), TiXmlNode::NextSibling(), TiXmlBase::StreamOut(), TiXmlAttribute::StreamOut(), and TiXmlNode::value. |
|
Definition at line 509 of file tinyxmlparser.cpp. References TiXmlBase::ToLower(). Referenced by TiXmlNode::Identify(), TiXmlDeclaration::Parse(), TiXmlComment::Parse(), Parse(), TiXmlDocument::Parse(), TiXmlBase::ReadText(), and ReadValue(). |
|
Definition at line 639 of file tinyxml.h. References TiXmlNode::value. Referenced by TiXmlNode::FirstChild(), TiXmlNode::LastChild(), TiXmlNode::NextSibling(), and TiXmlNode::PreviousSibling(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 613 of file tinyxml.h. References TiXmlNode::COMMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 606 of file tinyxml.h. References TiXmlNode::COMMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 616 of file tinyxml.h. References TiXmlNode::DECLARATION, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 609 of file tinyxml.h. References TiXmlNode::DECLARATION, and TiXmlNode::type. Referenced by TiXmlDocument::Parse(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 611 of file tinyxml.h. References TiXmlNode::DOCUMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 604 of file tinyxml.h. References TiXmlNode::DOCUMENT, and TiXmlNode::type. Referenced by TiXmlNode::GetDocument(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 612 of file tinyxml.h. References TiXmlNode::ELEMENT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 605 of file tinyxml.h. References TiXmlNode::ELEMENT, and TiXmlNode::type. Referenced by TiXmlHandle::Element(), TiXmlNode::FirstChildElement(), TiXmlNode::NextSiblingElement(), and TiXmlDocument::StreamOut(). |
|
Definition at line 317 of file tinyxml.h. References TIXML_ENCODING_UTF8. Referenced by TiXmlBase::StringEqual(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 615 of file tinyxml.h. References TiXmlNode::TEXT, and TiXmlNode::type. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 608 of file tinyxml.h. References TiXmlNode::TEXT, and TiXmlNode::type. Referenced by Print(), and TiXmlHandle::Text(). |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 614 of file tinyxml.h. References TiXmlNode::type, and TiXmlNode::UNKNOWN. |
|
Cast to a more defined type. Will return null not of the requested type.
Definition at line 607 of file tinyxml.h. References TiXmlNode::type, and TiXmlNode::UNKNOWN. Referenced by TiXmlHandle::Unknown(). |
|
Query the type (as an enumerated value, above) of this node. The possible types are: DOCUMENT, ELEMENT, COMMENT, UNKNOWN, TEXT, and DECLARATION. Definition at line 593 of file tinyxml.h. References TiXmlNode::type. |
|
The meaning of 'value' changes for the specific type of TiXmlNode. Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string The subclasses will wrap this function. Definition at line 425 of file tinyxml.h. References TiXmlNode::value. Referenced by Clone(), and CEGUI::TinyXMLDocument::processElement(). |
|
Definition at line 1452 of file tinyxml.cpp. |
|
Initial value: { "No error", "Error", "Failed to open file", "Memory allocation failed.", "Error parsing Element.", "Failed to read Element name", "Error reading Element value.", "Error reading Attributes.", "Error: empty tag.", "Error reading end tag.", "Error parsing Unknown.", "Error parsing Comment.", "Error parsing Declaration.", "Error document empty.", "Error null (0) or unexpected EOF found in input stream.", } Definition at line 34 of file tinyxmlerror.cpp. Referenced by TiXmlDocument::SetError(). |
|
Definition at line 644 of file tinyxml.h. Referenced by TiXmlNode::Clear(), CopyTo(), TiXmlNode::FirstChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::LinkEndChild(), TiXmlNode::NoChildren(), TiXmlDocument::Parse(), Print(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), StreamOut(), TiXmlElement(), TiXmlNode::TiXmlNode(), and TiXmlNode::~TiXmlNode(). |
|
Definition at line 645 of file tinyxml.h. Referenced by TiXmlNode::Clear(), TiXmlNode::InsertAfterChild(), TiXmlNode::LastChild(), TiXmlNode::LinkEndChild(), Print(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), TiXmlElement(), and TiXmlNode::TiXmlNode(). |
|
Definition at line 308 of file tinyxml.h. Referenced by TiXmlBase::Column(), TiXmlDocument::LoadFile(), TiXmlDeclaration::Parse(), TiXmlText::Parse(), TiXmlAttribute::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), Parse(), TiXmlDocument::Parse(), and TiXmlBase::Row(). |
|
Definition at line 650 of file tinyxml.h. Referenced by TiXmlNode::Clear(), TiXmlNode::FirstChild(), TiXmlNode::InsertAfterChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::LinkEndChild(), TiXmlNode::NextSibling(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), TiXmlNode::TiXmlNode(), and TiXmlNode::~TiXmlNode(). |
|
Definition at line 641 of file tinyxml.h. Referenced by TiXmlNode::GetDocument(), TiXmlNode::Identify(), TiXmlNode::InsertAfterChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::IterateChildren(), TiXmlNode::LinkEndChild(), TiXmlNode::Parent(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), and TiXmlNode::TiXmlNode(). |
|
Definition at line 649 of file tinyxml.h. Referenced by TiXmlNode::InsertAfterChild(), TiXmlNode::InsertBeforeChild(), TiXmlNode::LastChild(), TiXmlNode::LinkEndChild(), TiXmlNode::PreviousSibling(), TiXmlNode::RemoveChild(), TiXmlNode::ReplaceChild(), and TiXmlNode::TiXmlNode(). |
|
Definition at line 642 of file tinyxml.h. Referenced by TiXmlNode::TiXmlNode(), TiXmlNode::ToComment(), TiXmlNode::ToDeclaration(), TiXmlNode::ToDocument(), TiXmlNode::ToElement(), TiXmlNode::ToText(), TiXmlNode::ToUnknown(), and TiXmlNode::Type(). |
|
Field containing a generic user pointer.
Definition at line 311 of file tinyxml.h. Referenced by TiXmlNode::CopyTo(), TiXmlBase::GetUserData(), and TiXmlBase::SetUserData(). |
|
Initial value: { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } Definition at line 56 of file tinyxmlparser.cpp. Referenced by TiXmlBase::GetChar(), and TiXmlParsingData::Stamp(). |
|
Definition at line 647 of file tinyxml.h. Referenced by TiXmlText::Blank(), TiXmlNode::CopyTo(), TiXmlDocument::LoadFile(), TiXmlText::Parse(), TiXmlAttribute::Parse(), TiXmlComment::Parse(), TiXmlUnknown::Parse(), Parse(), TiXmlUnknown::Print(), TiXmlText::Print(), TiXmlComment::Print(), Print(), TiXmlDocument::SaveFile(), TiXmlNode::SetValue(), TiXmlUnknown::StreamOut(), TiXmlText::StreamOut(), TiXmlComment::StreamOut(), StreamOut(), TiXmlNode::SValue(), TiXmlDocument::TiXmlDocument(), TiXmlElement(), and TiXmlNode::Value(). |