36 #define TIXML_STRING std::string
45 #if defined(__GNUC__) && (__GNUC__ >= 3 )
48 #define TIXML_SNPRINTF snprintf
49 #define TIXML_SSCANF sscanf
51 #define TIXML_SNPRINTF snprintf
52 #define TIXML_SSCANF sscanf
64 class TiXmlDeclaration;
65 class TiXmlParsingData;
188 virtual void Print( FILE* cfile,
int depth )
const = 0;
230 virtual const char*
Parse(
const char* p,
267 return ( isspace( (
unsigned char) c ) || c ==
'\n' || c ==
'\r' );
288 static const char*
ReadText(
const char* in,
290 bool ignoreWhiteSpace,
306 assert( *length >= 0 && *length < 5 );
316 return GetEntity( p, _value, length, encoding );
324 for(
int i=0; p[i] && i<*length; ++i ) {
327 return p + (*length);
359 if ( v < 128 )
return tolower( v );
495 return const_cast< TiXmlNode*
> ((
const_cast< const TiXmlNode*
>(
this))->FirstChild( _value ));
502 return const_cast< TiXmlNode*
> ((
const_cast< const TiXmlNode*
>(
this))->LastChild( _value ));
528 return const_cast< TiXmlNode*
>( (
const_cast< const TiXmlNode*
>(
this))->IterateChildren( previous ) );
534 return const_cast< TiXmlNode*
>( (
const_cast< const TiXmlNode*
>(
this))->IterateChildren( _value, previous ) );
582 return const_cast< TiXmlNode*
>( (
const_cast< const TiXmlNode*
>(
this))->PreviousSibling( _prev ) );
597 return const_cast< TiXmlNode*
>( (
const_cast< const TiXmlNode*
>(
this))->NextSibling( _next ) );
615 return const_cast< TiXmlElement*
>( (
const_cast< const TiXmlNode*
>(
this))->NextSiblingElement( _next ) );
630 return const_cast< TiXmlElement*
>( (
const_cast< const TiXmlNode*
>(
this))->FirstChildElement( _value ) );
818 virtual void Print( FILE* cfile,
int depth )
const {
819 Print( cfile, depth, 0 );
903 const char*
Attribute(
const char* name )
const;
911 const char*
Attribute(
const char* name,
int* i )
const;
919 const char*
Attribute(
const char* name,
double* d )
const;
952 *_value = std::string( cstr );
972 std::stringstream sstream( node->
ValueStr() );
973 sstream >> *outValue;
974 if ( !sstream.fail() )
991 void SetAttribute(
const char* name,
const char * _value );
993 const std::string*
Attribute(
const std::string& name )
const;
994 const std::string*
Attribute(
const std::string& name,
int* i )
const;
995 const std::string*
Attribute(
const std::string& name,
double* d )
const;
1000 void SetAttribute(
const std::string& name,
const std::string& _value );
1002 void SetAttribute(
const std::string& name,
int _value );
1063 virtual void Print( FILE* cfile,
int depth )
const;
1115 virtual void Print( FILE* cfile,
int depth )
const;
1172 virtual void Print( FILE* cfile,
int depth )
const;
1223 const std::string& _encoding,
1224 const std::string& _standalone );
1228 const char* _encoding,
1229 const char* _standalone );
1247 virtual void Print( FILE* cfile,
int depth )
const {
1248 Print( cfile, depth, 0 );
1292 virtual void Print( FILE* cfile,
int depth )
const;
1342 bool SaveFile(
const char * filename )
const;
1354 return LoadFile( filename.c_str(), encoding );
1358 return SaveFile( filename.c_str() );
1447 virtual void Print( FILE* cfile,
int depth = 0 )
const;
1699 for(
int i=0; i<
depth; ++i )
void Remove(TiXmlAttribute *attribute)
TiXmlAttribute * Find(const char *_name) const
TiXmlAttributeSet(const TiXmlAttributeSet &)
void Add(TiXmlAttribute *attribute)
void operator=(const TiXmlAttributeSet &)
const TiXmlAttribute * First() const
const TiXmlAttribute * Last() const
TiXmlAttribute * FindOrCreate(const char *_name)
An attribute is a name-value pair.
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)
void SetIntValue(int _value)
Set the value from an integer.
const TiXmlAttribute * Previous() const
Get the previous sibling attribute in the DOM. Returns null at beginning.
virtual void Print(FILE *cfile, int depth) const
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL ...
void SetName(const std::string &_name)
STL std::string form.
double DoubleValue() const
Return the value of this attribute, converted to a double.
int IntValue() const
Return the value of this attribute, converted to an integer.
const char * Value() const
Return the value of this attribute.
void SetDocument(TiXmlDocument *doc)
void SetDoubleValue(double _value)
Set the value from a double.
const TIXML_STRING & NameTStr() const
const TiXmlAttribute * Next() const
Get the next sibling attribute in the DOM. Returns null at end.
bool operator==(const TiXmlAttribute &rhs) const
TiXmlAttribute(const std::string &_name, const std::string &_value)
std::string constructor.
int QueryDoubleValue(double *_value) const
QueryDoubleValue examines the value string. See QueryIntValue().
TiXmlAttribute * Previous()
void SetName(const char *_name)
Set the name of this attribute.
void SetValue(const std::string &_value)
STL std::string form.
bool operator>(const TiXmlAttribute &rhs) const
TiXmlAttribute()
Construct an empty attribute.
const char * Name() const
Return the name of this attribute.
TiXmlAttribute(const TiXmlAttribute &)
bool operator<(const TiXmlAttribute &rhs) const
const std::string & ValueStr() const
Return the value of this attribute.
TiXmlAttribute(const char *_name, const char *_value)
Construct an attribute with a name and value.
void SetValue(const char *_value)
Set the value.
void operator=(const TiXmlAttribute &base)
int QueryIntValue(int *_value) const
QueryIntValue examines the value string.
TiXmlBase is a base class for every class in TinyXml.
void operator=(const TiXmlBase &base)
int Row() const
Return the position, in the original source file, of this node or attribute.
static bool StreamTo(std::istream *in, int character, TIXML_STRING *tag)
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)=0
static bool condenseWhiteSpace
static const char * ReadText(const char *in, TIXML_STRING *text, bool ignoreWhiteSpace, const char *endTag, bool ignoreCase, TiXmlEncoding encoding)
static int IsAlphaNum(unsigned char anyByte, TiXmlEncoding encoding)
static const char * GetEntity(const char *in, char *value, int *length, TiXmlEncoding encoding)
void * userData
Field containing a generic user pointer.
static bool IsWhiteSpaceCondensed()
Return the current white space setting.
static bool StringEqual(const char *p, const char *endTag, bool ignoreCase, TiXmlEncoding encoding)
static bool IsWhiteSpace(char c)
TiXmlBase(const TiXmlBase &)
static void ConvertUTF32ToUTF8(unsigned long input, char *output, int *length)
void SetUserData(void *user)
Set a pointer to arbitrary user data.
static const int utf8ByteTable[256]
static Entity entity[NUM_ENTITY]
static bool IsWhiteSpace(int c)
static void EncodeString(const TIXML_STRING &str, TIXML_STRING *out)
Expands entities in a string.
virtual void Print(FILE *cfile, int depth) const =0
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL ...
static int IsAlpha(unsigned char anyByte, TiXmlEncoding encoding)
static const char * GetChar(const char *p, char *_value, int *length, TiXmlEncoding encoding)
int Column() const
See Row()
static bool StreamWhiteSpace(std::istream *in, TIXML_STRING *tag)
void * GetUserData()
Get a pointer to arbitrary user data.
static const char * errorString[TIXML_ERROR_STRING_COUNT]
@ TIXML_ERROR_DOCUMENT_EMPTY
@ TIXML_ERROR_DOCUMENT_TOP_ONLY
@ TIXML_ERROR_PARSING_ELEMENT
@ TIXML_ERROR_OPENING_FILE
@ TIXML_ERROR_READING_END_TAG
@ TIXML_ERROR_STRING_COUNT
@ TIXML_ERROR_EMBEDDED_NULL
@ TIXML_ERROR_PARSING_EMPTY
@ TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME
@ TIXML_ERROR_PARSING_COMMENT
@ TIXML_ERROR_READING_ATTRIBUTES
@ TIXML_ERROR_PARSING_UNKNOWN
@ TIXML_ERROR_PARSING_DECLARATION
@ TIXML_ERROR_READING_ELEMENT_VALUE
@ TIXML_ERROR_PARSING_CDATA
static const char * ReadName(const char *p, TIXML_STRING *name, TiXmlEncoding encoding)
static const char * SkipWhiteSpace(const char *, TiXmlEncoding encoding)
static int ToLower(int v, TiXmlEncoding encoding)
const void * GetUserData() const
Get a pointer to arbitrary user data.
static void SetCondenseWhiteSpace(bool condense)
The world does not agree on whether white space should be kept or not.
In correct XML the declaration is the first entry in the file.
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)
virtual void Print(FILE *cfile, int depth) const
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL ...
TiXmlDeclaration & operator=(const TiXmlDeclaration ©)
virtual void Print(FILE *cfile, int depth, TIXML_STRING *str) const
void CopyTo(TiXmlDeclaration *target) const
const char * Version() const
Version. Will return an empty string if none was found.
virtual TiXmlNode * Clone() const
Creates a copy of this Declaration and returns it.
const char * Standalone() const
Is this a standalone document?
virtual ~TiXmlDeclaration()
virtual TiXmlDeclaration * ToDeclaration()
Cast to a more defined type. Will return null not of the requested type.
virtual const TiXmlDeclaration * ToDeclaration() const
Cast to a more defined type. Will return null not of the requested type.
const char * Encoding() const
Encoding. Will return an empty string if none was found.
virtual void StreamIn(std::istream *in, TIXML_STRING *tag)
virtual bool Accept(TiXmlVisitor *visitor) const
Walk the XML tree visiting this node and all of its children.
TiXmlDeclaration()
Construct an empty declaration.
Always the top level node.
bool LoadFile(const std::string &filename, TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING)
bool SaveFile() const
Save a file using the current document value. Returns true if successful.
virtual const char * Parse(const char *p, TiXmlParsingData *data=0, TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING)
Parse the given null terminated block of xml data.
void SetError(int err, const char *errorLocation, TiXmlParsingData *prevData, TiXmlEncoding encoding)
int ErrorId() const
Generally, you probably want the error string ( ErrorDesc() ).
virtual bool Accept(TiXmlVisitor *content) const
Walk the XML tree visiting this node and all of its children.
bool LoadFile(TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING)
Load a file using the current document value.
virtual TiXmlDocument * ToDocument()
Cast to a more defined type. Will return null not of the requested type.
TiXmlElement * RootElement()
virtual TiXmlNode * Clone() const
Create an exact duplicate of this node and return it.
const char * ErrorDesc() const
Contains a textual (english) description of the error if one occurs.
TiXmlDocument()
Create an empty document, that has no name.
int ErrorCol() const
The column where the error occured. See ErrorRow()
void ClearError()
If you have handled the error, it can be reset with this call.
TiXmlDocument & operator=(const TiXmlDocument ©)
const TiXmlElement * RootElement() const
Get the root element – the only top level element – of the document.
TiXmlCursor errorLocation
bool Error() const
If an error occurs, Error will be set to true.
int ErrorRow() const
Returns the location (if known) of the error.
virtual void StreamIn(std::istream *in, TIXML_STRING *tag)
bool SaveFile(const std::string &filename) const
< STL std::string version.
void Print() const
Write the document to standard out using formatted printing ("pretty print").
void CopyTo(TiXmlDocument *target) const
void SetTabSize(int _tabsize)
SetTabSize() allows the error reporting functions (ErrorRow() and ErrorCol()) to report the correct v...
virtual const TiXmlDocument * ToDocument() const
Cast to a more defined type. Will return null not of the requested type.
The element is a container class.
const char * Attribute(const char *name) const
Given an attribute name, Attribute() returns the value for the attribute of that name,...
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)
int QueryFloatAttribute(const char *name, float *_value) const
QueryFloatAttribute examines the attribute - see QueryIntAttribute().
void RemoveAttribute(const std::string &name)
STL std::string form.
const char * ReadValue(const char *in, TiXmlParsingData *prevData, TiXmlEncoding encoding)
int QueryIntAttribute(const char *name, int *_value) const
QueryIntAttribute examines the attribute - it is an alternative to the Attribute() method with richer...
int QueryValueAttribute(const std::string &name, std::string *outValue) const
TiXmlAttribute * FirstAttribute()
virtual TiXmlElement * ToElement()
Cast to a more defined type. Will return null not of the requested type.
TiXmlAttribute * LastAttribute()
TiXmlElement & operator=(const TiXmlElement &base)
virtual TiXmlNode * Clone() const
Creates a new Element and returns it - the returned element is a copy.
void RemoveAttribute(const char *name)
Deletes an attribute with the given name.
virtual const TiXmlElement * ToElement() const
Cast to a more defined type. Will return null not of the requested type.
int QueryStringAttribute(const char *name, std::string *_value) const
QueryStringAttribute examines the attribute - see QueryIntAttribute().
void SetDoubleAttribute(const std::string &name, double value)
const char * GetText() const
Convenience function for easy access to the text inside an element.
virtual void Print(FILE *cfile, int depth) const
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL ...
const TiXmlAttribute * LastAttribute() const
Access the last attribute in this element.
TiXmlAttributeSet attributeSet
void CopyTo(TiXmlElement *target) const
int QueryBoolAttribute(const char *name, bool *_value) const
QueryBoolAttribute examines the attribute - see QueryIntAttribute().
virtual void StreamIn(std::istream *in, TIXML_STRING *tag)
virtual bool Accept(TiXmlVisitor *visitor) const
Walk the XML tree visiting this node and all of its children.
void SetAttribute(const char *name, const char *_value)
Sets an attribute of name to a given value.
int QueryUnsignedAttribute(const char *name, unsigned *_value) const
QueryUnsignedAttribute examines the attribute - see QueryIntAttribute().
const TiXmlAttribute * FirstAttribute() const
Access the first attribute in this element.
int QueryDoubleAttribute(const char *name, double *_value) const
QueryDoubleAttribute examines the attribute - see QueryIntAttribute().
int QueryValueAttribute(const std::string &name, T *outValue) const
Template form of the attribute query which will try to read the attribute into the specified type.
A TiXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly useful thi...
TiXmlHandle FirstChild() const
Return a handle to the first child node.
TiXmlHandle ChildElement(const char *value, int index) const
Return a handle to the "index" child element with the given name.
TiXmlText * ToText() const
Return the handle as a TiXmlText.
TiXmlNode * ToNode() const
Return the handle as a TiXmlNode.
TiXmlHandle Child(const char *value, int index) const
Return a handle to the "index" child with the given name.
TiXmlElement * ToElement() const
Return the handle as a TiXmlElement.
TiXmlUnknown * Unknown() const
TiXmlHandle FirstChildElement(const std::string &_value) const
TiXmlUnknown * ToUnknown() const
Return the handle as a TiXmlUnknown.
TiXmlHandle(TiXmlNode *_node)
Create a handle from any node (at any depth of the tree.) This can be a null pointer.
TiXmlHandle FirstChildElement() const
Return a handle to the first child element.
TiXmlElement * Element() const
TiXmlHandle FirstChild(const std::string &_value) const
TiXmlHandle(const TiXmlHandle &ref)
Copy constructor.
TiXmlHandle operator=(const TiXmlHandle &ref)
TiXmlHandle ChildElement(const std::string &_value, int index) const
TiXmlHandle Child(const std::string &_value, int index) const
The parent class for everything in the Document Object Model.
TiXmlNode * LinkEndChild(TiXmlNode *addThis)
Add a new node related to this.
virtual TiXmlText * ToText()
Cast to a more defined type. Will return null if not of the requested type.
TiXmlDocument * GetDocument()
TiXmlElement * FirstChildElement()
const TiXmlNode * FirstChild() const
The first child of this node. Will be null if there are no children.
TiXmlNode * InsertBeforeChild(TiXmlNode *beforeThis, const TiXmlNode &addThis)
Add a new node related to this.
TiXmlNode * FirstChild(const char *_value)
The first child of this node with the matching 'value'. Will be null if none found.
TiXmlElement * FirstChildElement(const std::string &_value)
STL std::string form.
const TiXmlElement * NextSiblingElement(const std::string &_value) const
STL std::string form.
TiXmlNode * NextSibling(const char *_next)
virtual TiXmlUnknown * ToUnknown()
Cast to a more defined type. Will return null if not of the requested type.
TiXmlNode * InsertAfterChild(TiXmlNode *afterThis, const TiXmlNode &addThis)
Add a new node related to this.
const TiXmlNode * Parent() const
const TiXmlElement * FirstChildElement(const std::string &_value) const
STL std::string form.
const TiXmlNode * PreviousSibling() const
Navigate to a sibling node.
const char * Value() const
The meaning of 'value' changes for the specific type of TiXmlNode.
const TiXmlNode * IterateChildren(const TiXmlNode *previous) const
An alternate way to walk the children of a node.
virtual bool Accept(TiXmlVisitor *visitor) const =0
Accept a hierchical visit the nodes in the TinyXML DOM.
TiXmlNode * PreviousSibling()
TiXmlNode * LastChild(const std::string &_value)
STL std::string form.
virtual TiXmlDocument * ToDocument()
Cast to a more defined type. Will return null if not of the requested type.
void operator=(const TiXmlNode &base)
const TiXmlNode * LastChild() const
TiXmlElement * NextSiblingElement(const char *_next)
TiXmlNode * Parent()
One step up the DOM.
virtual TiXmlNode * Clone() const =0
Create an exact duplicate of this node and return it.
const TiXmlNode * NextSibling() const
Navigate to a sibling node.
TiXmlNode * LastChild()
The last child of this node. Will be null if there are no children.
int Type() const
Query the type (as an enumerated value, above) of this node.
void CopyTo(TiXmlNode *target) const
bool NoChildren() const
Returns true if this node has no children.
virtual TiXmlElement * ToElement()
Cast to a more defined type. Will return null if not of the requested type.
TiXmlElement * FirstChildElement(const char *_value)
const TiXmlNode * IterateChildren(const std::string &_value, const TiXmlNode *previous) const
STL std::string form.
const TiXmlNode * NextSibling(const std::string &_value) const
STL std::string form.
TiXmlNode * FirstChild(const std::string &_value)
STL std::string form.
TiXmlNode * IterateChildren(const TiXmlNode *previous)
virtual const TiXmlUnknown * ToUnknown() const
Cast to a more defined type. Will return null if not of the requested type.
TiXmlElement * NextSiblingElement()
virtual void StreamIn(std::istream *in, TIXML_STRING *tag)=0
TiXmlElement * NextSiblingElement(const std::string &_value)
STL std::string form.
friend std::ostream & operator<<(std::ostream &out, const TiXmlNode &base)
An output stream operator, for every class.
virtual const TiXmlText * ToText() const
Cast to a more defined type. Will return null if not of the requested type.
virtual const TiXmlComment * ToComment() const
Cast to a more defined type. Will return null if not of the requested type.
virtual TiXmlComment * ToComment()
Cast to a more defined type. Will return null if not of the requested type.
TiXmlNode * LastChild(const char *_value)
The last child of this node matching 'value'. Will be null if there are no children.
void SetValue(const std::string &_value)
STL std::string form.
virtual const TiXmlElement * ToElement() const
Cast to a more defined type. Will return null if not of the requested type.
const TiXmlElement * NextSiblingElement() const
Convenience function to get through elements.
void Clear()
Delete all the children of this node. Does not affect 'this'.
TiXmlNode * ReplaceChild(TiXmlNode *replaceThis, const TiXmlNode &withThis)
Replace a child of this node.
const TiXmlDocument * GetDocument() const
Return a pointer to the Document this node lives in.
virtual TiXmlDeclaration * ToDeclaration()
Cast to a more defined type. Will return null if not of the requested type.
bool RemoveChild(TiXmlNode *removeThis)
Delete a child of this node.
friend std::istream & operator>>(std::istream &in, TiXmlNode &base)
An input stream operator, for every class.
friend class TiXmlElement
TiXmlNode(const TiXmlNode &)
virtual const TiXmlDeclaration * ToDeclaration() const
Cast to a more defined type. Will return null if not of the requested type.
TiXmlNode * Identify(const char *start, TiXmlEncoding encoding)
TiXmlNode * InsertEndChild(const TiXmlNode &addThis)
Add a new node related to this.
TiXmlNode * NextSibling(const std::string &_value)
STL std::string form.
TiXmlNode * NextSibling()
NodeType
The types of XML nodes supported by TinyXml.
TiXmlNode * PreviousSibling(const char *_prev)
const std::string & ValueStr() const
Return Value() as a std::string.
TiXmlNode * IterateChildren(const std::string &_value, const TiXmlNode *previous)
STL std::string form.
const TiXmlNode * FirstChild(const std::string &_value) const
STL std::string form.
void SetValue(const char *_value)
Changes the value of the node.
const TIXML_STRING & ValueTStr() const
const TiXmlNode * PreviousSibling(const std::string &_value) const
STL std::string form.
const TiXmlNode * LastChild(const std::string &_value) const
STL std::string form.
TiXmlNode * IterateChildren(const char *_value, const TiXmlNode *previous)
TiXmlNode * PreviousSibling(const std::string &_value)
STL std::string form.
const TiXmlElement * FirstChildElement() const
Convenience function to get through elements.
virtual const TiXmlDocument * ToDocument() const
Cast to a more defined type. Will return null if not of the requested type.
Print to memory functionality.
virtual bool Visit(const TiXmlDeclaration &declaration)
Visit a declaration.
const char * Indent()
Query the indention string.
void SetIndent(const char *_indent)
Set the indent characters for printing.
virtual bool VisitExit(const TiXmlDocument &doc)
Visit a document.
void SetStreamPrinting()
Switch over to "stream printing" which is the most dense formatting without linebreaks.
void SetLineBreak(const char *_lineBreak)
Set the line breaking string.
size_t Size()
Return the length of the result string.
const char * CStr()
Return the result.
const std::string & Str()
Return the result.
const char * LineBreak()
Query the current line breaking string.
virtual bool VisitEnter(const TiXmlDocument &doc)
Visit a document.
virtual TiXmlText * ToText()
Cast to a more defined type. Will return null not of the requested type.
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)
void SetCDATA(bool _cdata)
Turns on or off a CDATA representation of text.
TiXmlText(const char *initValue)
Constructor for text element.
virtual bool Accept(TiXmlVisitor *content) const
Walk the XML tree visiting this node and all of its children.
TiXmlText & operator=(const TiXmlText &base)
virtual TiXmlNode * Clone() const
[internal use] Creates a new Element and returns it.
virtual const TiXmlText * ToText() const
Cast to a more defined type. Will return null not of the requested type.
TiXmlText(const std::string &initValue)
Constructor.
virtual void Print(FILE *cfile, int depth) const
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL ...
virtual void StreamIn(std::istream *in, TIXML_STRING *tag)
void CopyTo(TiXmlText *target) const
bool CDATA() const
Queries whether this represents text using a CDATA section.
TiXmlText(const TiXmlText ©)
Any tag that tinyXml doesn't recognize is saved as an unknown.
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)
virtual TiXmlUnknown * ToUnknown()
Cast to a more defined type. Will return null not of the requested type.
virtual bool Accept(TiXmlVisitor *content) const
Walk the XML tree visiting this node and all of its children.
TiXmlUnknown & operator=(const TiXmlUnknown ©)
virtual TiXmlNode * Clone() const
Creates a copy of this Unknown and returns it.
virtual const TiXmlUnknown * ToUnknown() const
Cast to a more defined type. Will return null not of the requested type.
TiXmlUnknown(const TiXmlUnknown ©)
void CopyTo(TiXmlUnknown *target) const
virtual void Print(FILE *cfile, int depth) const
All TinyXml classes can print themselves to a filestream or the string class (TiXmlString in non-STL ...
virtual void StreamIn(std::istream *in, TIXML_STRING *tag)
Implements the interface to the "Visitor pattern" (see the Accept() method.) If you call the Accept()...
virtual bool Visit(const TiXmlDeclaration &)
Visit a declaration.
virtual bool VisitExit(const TiXmlDocument &)
Visit a document.
virtual bool VisitEnter(const TiXmlDocument &)
Visit a document.
virtual bool Visit(const TiXmlText &)
Visit a text node.
virtual bool VisitExit(const TiXmlElement &)
Visit an element.
virtual bool Visit(const TiXmlUnknown &)
Visit an unknown node.
virtual bool VisitEnter(const TiXmlElement &, const TiXmlAttribute *)
Visit an element.
virtual bool Visit(const TiXmlComment &)
Visit a comment node.
const int TIXML_PATCH_VERSION
const int TIXML_MAJOR_VERSION
const int TIXML_MINOR_VERSION
const TiXmlEncoding TIXML_DEFAULT_ENCODING