#include <tinyxml.h>


Public Member Functions | |
| TiXmlElement (const char *in_value) | |
| Construct an element. | |
| TiXmlElement (const std::string &_value) | |
| std::string constructor. | |
| virtual | ~TiXmlElement () |
| const char * | Attribute (const std::string &name) const |
| const char * | Attribute (const std::string &name, int *i) const |
| void | SetAttribute (const std::string &name, const std::string &value) |
| STL std::string form. | |
| void | SetAttribute (const std::string &name, int value) |
| void | SetAttribute (const char *name, int value) |
| Sets an attribute of name to a given value. | |
| void | RemoveAttribute (const char *name) |
| Deletes an attribute with the given name. | |
| void | RemoveAttribute (const std::string &name) |
| STL std::string form. | |
| TiXmlAttribute * | FirstAttribute () const |
| Access the first attribute in this element. | |
| TiXmlAttribute * | LastAttribute () const |
| Access the last attribute in this element. | |
| virtual TiXmlNode * | Clone () const |
| virtual void | Print (FILE *cfile, int depth) const |
| All TinyXml classes can print themselves to a filestream. | |
Protected Member Functions | |
| virtual void | StreamIn (TIXML_ISTREAM *in, TIXML_STRING *tag) |
| virtual void | StreamOut (TIXML_OSTREAM *out) const |
| virtual const char * | Parse (const char *p) |
| const char * | ReadValue (const char *in) |
Private Attributes | |
| TiXmlAttributeSet | attributeSet |
It has a value, the element name, and can contain other elements, text, comments, and unknowns. Elements also contain an arbitrary number of attributes.
Definition at line 628 of file tinyxml.h.
| TiXmlElement::TiXmlElement | ( | const char * | in_value | ) |
Construct an element.
Definition at line 456 of file tinyxml.cpp.
References TiXmlNode::firstChild, TiXmlNode::lastChild, and TiXmlNode::value.
Referenced by Clone().
| TiXmlElement::TiXmlElement | ( | const std::string & | _value | ) | [inline] |
| TiXmlElement::~TiXmlElement | ( | ) | [virtual] |
Definition at line 463 of file tinyxml.cpp.
References attributeSet, TiXmlAttributeSet::First(), and TiXmlAttributeSet::Remove().
| const char * TiXmlElement::Attribute | ( | const std::string & | name, | |
| int * | i | |||
| ) | const |
| const char * TiXmlElement::Attribute | ( | const std::string & | name | ) | const |
Definition at line 534 of file tinyxml.cpp.
References attributeSet, TiXmlAttributeSet::Find(), and TiXmlAttribute::Value().
Referenced by Attribute(), Ogre::DotSceneLoader::getAttrib(), Ogre::DotSceneLoader::getAttribBool(), Ogre::DotSceneLoader::getAttribInt(), Ogre::DotSceneLoader::getAttribReal(), Ogre::DotSceneLoader::parseColour(), Ogre::DotSceneLoader::parseQuaternion(), Ogre::DotSceneLoader::parseVector3(), Ogre::DotSceneLoader::processCamera(), Ogre::DotSceneLoader::processScene(), Ogre::DotSceneLoader::processSkyDome(), and Ogre::DotSceneLoader::processUserDataReference().
| TiXmlNode * TiXmlElement::Clone | ( | ) | const [virtual] |
Implements TiXmlNode.
Definition at line 671 of file tinyxml.cpp.
References attributeSet, TiXmlNode::Clone(), TiXmlNode::CopyToClone(), TiXmlAttributeSet::First(), TiXmlNode::firstChild, TiXmlNode::LinkEndChild(), TiXmlAttribute::Name(), TiXmlAttribute::Next(), TiXmlNode::NextSibling(), SetAttribute(), TiXmlElement(), TiXmlAttribute::Value(), and TiXmlNode::Value().
| TiXmlAttribute* TiXmlElement::FirstAttribute | ( | ) | const [inline] |
| TiXmlAttribute* TiXmlElement::LastAttribute | ( | ) | const [inline] |
| const char * TiXmlElement::Parse | ( | const char * | p | ) | [protected, virtual] |
Implements TiXmlBase.
Definition at line 562 of file tinyxmlparser.cpp.
References TiXmlNode::GetDocument(), TiXmlAttribute::Name(), TiXmlAttribute::Parse(), TiXmlBase::ReadName(), ReadValue(), SetAttribute(), TiXmlAttribute::SetDocument(), TiXmlDocument::SetError(), TiXmlBase::SkipWhiteSpace(), TiXmlBase::StringEqual(), TiXmlBase::TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME, 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.
| void TiXmlElement::Print | ( | FILE * | cfile, | |
| int | depth | |||
| ) | const [virtual] |
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 590 of file tinyxml.cpp.
References attributeSet, TiXmlAttributeSet::First(), TiXmlNode::firstChild, TiXmlNode::lastChild, TiXmlAttribute::Next(), TiXmlNode::NextSibling(), TiXmlBase::Print(), and TiXmlNode::ToText().
| const char * TiXmlElement::ReadValue | ( | const char * | in | ) | [protected] |
Definition at line 649 of file tinyxmlparser.cpp.
References TiXmlText::Blank(), TiXmlNode::GetDocument(), TiXmlNode::Identify(), TiXmlNode::LinkEndChild(), TiXmlBase::Parse(), TiXmlText::Parse(), TiXmlDocument::SetError(), TiXmlBase::SkipWhiteSpace(), TiXmlBase::StringEqual(), TiXmlBase::TIXML_ERROR_OUT_OF_MEMORY, and TiXmlBase::TIXML_ERROR_READING_ELEMENT_VALUE.
Referenced by Parse().
| void TiXmlElement::RemoveAttribute | ( | const std::string & | name | ) | [inline] |
STL std::string form.
Definition at line 688 of file tinyxml.h.
References RemoveAttribute().
Referenced by RemoveAttribute().
| void TiXmlElement::RemoveAttribute | ( | const char * | name | ) |
Deletes an attribute with the given name.
Definition at line 374 of file tinyxml.cpp.
References attributeSet, TiXmlAttributeSet::Find(), and TiXmlAttributeSet::Remove().
| void TiXmlElement::SetAttribute | ( | const char * | name, | |
| int | value | |||
| ) |
Sets an attribute of name to a given value.
The attribute will be created if it does not exist, or changed if it does.
| void TiXmlElement::SetAttribute | ( | const std::string & | name, | |
| int | value | |||
| ) |
| void TiXmlElement::SetAttribute | ( | const std::string & | name, | |
| const std::string & | value | |||
| ) |
STL std::string form.
STL std::string form.
Definition at line 567 of file tinyxml.cpp.
References TiXmlAttributeSet::Add(), attributeSet, TiXmlAttributeSet::Find(), TiXmlNode::GetDocument(), TiXmlDocument::SetError(), TiXmlAttribute::SetValue(), and TiXmlBase::TIXML_ERROR_OUT_OF_MEMORY.
Referenced by Clone(), Parse(), and SetAttribute().
| void TiXmlElement::StreamIn | ( | TIXML_ISTREAM * | in, | |
| TIXML_STRING * | tag | |||
| ) | [protected, virtual] |
Implements TiXmlNode.
Definition at line 458 of file tinyxmlparser.cpp.
References TiXmlNode::Identify(), TiXmlBase::IsWhiteSpace(), TiXmlNode::StreamIn(), TiXmlText::StreamIn(), and TiXmlBase::StreamWhiteSpace().
| void TiXmlElement::StreamOut | ( | TIXML_OSTREAM * | out | ) | const [protected, virtual] |
Implements TiXmlBase.
Definition at line 641 of file tinyxml.cpp.
References attributeSet, TiXmlAttributeSet::First(), TiXmlNode::firstChild, TiXmlAttribute::Next(), TiXmlNode::NextSibling(), TiXmlBase::StreamOut(), and TiXmlAttribute::StreamOut().
TiXmlAttributeSet TiXmlElement::attributeSet [private] |
Definition at line 721 of file tinyxml.h.
Referenced by Attribute(), Clone(), Print(), RemoveAttribute(), SetAttribute(), StreamOut(), and ~TiXmlElement().
1.5.7.1