|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
35 #ifndef TINYXML_INCLUDED
36 #define TINYXML_INCLUDED
39 #pragma warning( push )
40 #pragma warning( disable : 4530 )
41 #pragma warning( disable : 4786 )
51 #if defined( _DEBUG ) && !defined( DEBUG )
59 #define TIXML_STRING std::string
62 #define TIXML_STRING TiXmlString
72 #if defined(_MSC_VER) && (_MSC_VER >= 1400 )
74 #define TIXML_SNPRINTF _snprintf_s
75 #define TIXML_SNSCANF _snscanf_s
76 #elif defined(_MSC_VER) && (_MSC_VER >= 1200 )
79 #define TIXML_SNPRINTF _snprintf
80 #define TIXML_SNSCANF _snscanf
81 #elif defined(__GNUC__) && (__GNUC__ >= 3 )
84 #define TIXML_SNPRINTF snprintf
85 #define TIXML_SNSCANF snscanf
231 virtual void Print(FILE* cfile,
int depth)
const = 0;
315 return (isspace((
unsigned char) c) || c ==
'\n' || c ==
'\r');
337 static const char*
ReadText(
const char* in,
339 bool ignoreWhiteSpace,
353 assert( *length >= 0 && *length < 5);
361 return GetEntity(p, _value, length, encoding);
368 for (
int i = 0; p[i] && i < *length; ++i) {
371 return p + (*length);
491 return value.c_str();
518 void SetValue(
const std::string& _value) {
546 return const_cast<TiXmlNode*
>((
const_cast<const TiXmlNode*
>(
this))->FirstChild(_value));
557 return const_cast<TiXmlNode*
>((
const_cast<const TiXmlNode*
>(
this))->LastChild(_value));
593 return const_cast<TiXmlNode*
>((
const_cast<const TiXmlNode*
>(
this))->IterateChildren(previous));
599 return const_cast<TiXmlNode*
>((
const_cast<const TiXmlNode*
>(
this))->IterateChildren(_value, previous));
656 return const_cast<TiXmlNode*
>((
const_cast<const TiXmlNode*
>(
this))->PreviousSibling(_prev));
685 return const_cast<TiXmlNode*
>((
const_cast<const TiXmlNode*
>(
this))->NextSibling(_next));
721 return const_cast<TiXmlElement*
>((
const_cast<const TiXmlNode*
>(
this))->PreviousSiblingElement(_next));
892 TiXmlAttribute(
const std::string& _name,
const std::string& _value) {
913 return value.c_str();
952 void SetName(
const std::string& _name) {
990 virtual void Print(FILE* cfile,
int depth)
const override {
991 Print(cfile, depth, 0);
1048 #ifdef TIXML_USE_STL
1074 #ifdef TIXML_USE_STL
1095 const char*
Attribute(
const char* name)
const;
1107 const char*
Attribute(
const char* name,
int* i)
const;
1115 const char*
Attribute(
const char* name,
double* d)
const;
1132 *_value = (float) d;
1136 #ifdef TIXML_USE_STL
1148 std::stringstream sstream(node->
ValueStr());
1149 sstream >> *outValue;
1150 if (!sstream.fail())
1159 void SetAttribute(
const char* name,
const char * _value);
1161 #ifdef TIXML_USE_STL
1162 const std::string*
Attribute(
const std::string& name)
const;
1163 const std::string*
Attribute(
const std::string& name,
int* i)
const;
1164 const std::string*
Attribute(
const std::string& name,
double* d)
const;
1187 #ifdef TIXML_USE_STL
1243 virtual void Print(FILE* cfile,
int depth)
const override;
1267 #ifdef TIXML_USE_STL
1303 virtual void Print(FILE* cfile,
int depth)
const override;
1325 #ifdef TIXML_USE_STL
1354 #ifdef TIXML_USE_STL
1372 virtual void Print(FILE* cfile,
int depth)
const override;
1403 #ifdef TIXML_USE_STL
1431 #ifdef TIXML_USE_STL
1432 TiXmlDeclaration(
const std::string& _version,
const std::string& _encoding,
const std::string& _standalone);
1437 TiXmlDeclaration(
const char* _version,
const char* _encoding,
const char* _standalone);
1462 virtual void Print(FILE* cfile,
int depth)
const override {
1463 Print(cfile, depth, 0);
1482 #ifdef TIXML_USE_STL
1517 virtual void Print(FILE* cfile,
int depth)
const override;
1535 #ifdef TIXML_USE_STL
1554 #ifdef TIXML_USE_STL
1575 bool SaveFile(
const char * filename)
const;
1585 #ifdef TIXML_USE_STL
1590 return LoadFile(filename.c_str(), encoding);
1706 virtual void Print(FILE* cfile,
int depth = 0)
const override;
1724 #ifdef TIXML_USE_STL
1861 #ifdef TIXML_USE_STL
1870 return Child(_value.c_str(), index);
1967 indent = _indent ? _indent :
"";
1978 lineBreak = _lineBreak ? _lineBreak :
"";
2001 #ifdef TIXML_USE_STL
2002 const std::string&
Str() {
2010 for (
int i = 0; i <
depth; ++i)
2022 #pragma warning( pop )
virtual void StreamIn(std::istream *in, TIXML_STRING *tag) override
TiXmlAttributeSet attributeSet
virtual TiXmlDocument * ToDocument()
Cast to a more defined type. Will return null if not of the requested type.
TinyXML class. See http://www.grinninglizard.com/tinyxml.
virtual TiXmlDocument * ToDocument() override
Cast to a more defined type. Will return null not of the requested type.
static void ConvertUTF32ToUTF8(unsigned long input, char *output, int *length)
const TiXmlNode * LastChild() const
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)=0
virtual const TiXmlText * ToText() const override
Cast to a more defined type. Will return null not of the requested type.
virtual bool Accept(TiXmlVisitor *content) const override
void SetValue(const std::string &_value)
STL std::string form.
TiXmlHandle_t Child(const std::string &_value, int index) const
virtual bool VisitExit(const TiXmlElement &)
Visit an element.
TiXmlElement * FirstChildElement(const std::string &_value)
STL std::string form.
TinyXML class. See http://www.grinninglizard.com/tinyxml.
const char * Attribute(const char *name) const
void SetIndent(const char *_indent)
int IntValue() const
Return the value of this attribute, converted to an integer.
const TiXmlAttribute * Previous() const
Get the previous sibling attribute in the DOM. Returns null at beginning.
TinyXML class. See http://www.grinninglizard.com/tinyxml.
virtual TiXmlNode * Clone() const override
[internal use] Creates a new Element and returns it.
TiXmlNode * IterateChildren(const char *_value, const TiXmlNode *previous)
virtual ~TiXmlDeclaration()
static bool IsWhiteSpace(char c)
virtual void Print(FILE *cfile, int depth) const override
int ErrorCol() const
The column where the error occured. See ErrorRow()
int Column() const
See Row()
virtual const TiXmlElement * ToElement() const override
Cast to a more defined type. Will return null not of the requested type.
const std::string & Str()
Return the result.
TiXmlHandle_t Child(const char *value, int index) const
const TiXmlNode * PreviousSibling(const std::string &_value) const
STL std::string form.
virtual bool Accept(TiXmlVisitor *visitor) const override
void CopyTo(TiXmlText *target) const
const std::string * Attribute(const std::string &name) const
virtual const TiXmlDeclaration * ToDeclaration() const override
Cast to a more defined type. Will return null not of the requested type.
void SetDoubleAttribute(const char *name, double value)
@ TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME
TiXmlAttribute * LastAttribute()
TiXmlNode * NextSibling(const char *_next)
TiXmlElement * PreviousSiblingElement()
TiXmlElement * ToElement() const
void SetCDATA(bool _cdata)
Turns on or off a CDATA representation of text.
virtual bool Visit(const TiXmlDeclaration &)
Visit a declaration.
void RemoveAttribute(const std::string &name)
STL std::string form.
TiXmlHandle_t(const TiXmlHandle_t &ref)
Copy constructor.
TiXmlNode * ReplaceChild(TiXmlNode *replaceThis, const TiXmlNode &withThis)
virtual const TiXmlComment * ToComment() const
Cast to a more defined type. Will return null if not of the requested type.
TiXmlText(const char *initValue)
TiXmlHandle_t(TiXmlNode *_node)
Create a handle from any node (at any depth of the tree.) This can be a null pointer.
const std::string & ValueStr() const
Return the value of this attribute.
void CopyTo(TiXmlUnknown *target) const
size_t Size()
Return the length of the result string.
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) override
static const char * GetEntity(const char *in, char *value, int *length, TiXmlEncoding encoding)
virtual void StreamIn(std::istream *in, TIXML_STRING *tag) override
void * GetUserData()
Get a pointer to arbitrary user data.
int QueryFloatAttribute(const char *name, float *_value) const
QueryFloatAttribute examines the attribute - see QueryIntAttribute().
TinyXML class. See http://www.grinninglizard.com/tinyxml.
const TiXmlNode * NextSibling() const
Navigate to a sibling node.
const TiXmlNode * FirstChild() const
The first child of this node. Will be null if there are no children.
TiXmlAttributeSet(const TiXmlAttributeSet &)
virtual bool Visit(const TiXmlText &)
Visit a text node.
TiXmlText * ToText() const
const TiXmlNode * IterateChildren(const std::string &_value, const TiXmlNode *previous) const
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 TiXmlNode * FirstChild(const std::string &_value) const
STL std::string form.
int QueryValueAttribute(const std::string &name, T *outValue) const
void SetError(int err, const char *errorLocation, TiXmlParsingData *prevData, TiXmlEncoding encoding)
TiXmlNode * PreviousSibling(const std::string &_value)
STL std::string form.
TiXmlNode * LastChild(const std::string &_value)
STL std::string form.
bool NoChildren() const
Returns true if this node has no children.
virtual TiXmlText * ToText()
Cast to a more defined type. Will return null if not of the requested type.
static bool StreamTo(std::istream *in, int character, TIXML_STRING *tag)
void CopyTo(TiXmlDeclaration *target) const
void operator=(const TiXmlAttributeSet &)
void operator=(const TiXmlUnknown ©)
TiXmlElement * FirstChildElement(const char *_value)
TiXmlNode * LinkEndChild(TiXmlNode *addThis)
TiXmlAttribute * Find(const char *_name)
void operator=(const TiXmlElement &base)
const char * Encoding() const
Encoding. Will return an empty string if none was found.
void CopyTo(TiXmlNode *target) const
const char * Version() const
Version. Will return an empty string if none was found.
const int TIXML_PATCH_VERSION
friend class TiXmlElement
TiXmlElement * PreviousSiblingElement(const char *_next)
const TiXmlNode * PreviousSibling() const
Navigate to a sibling node.
const char * ReadValue(const char *in, TiXmlParsingData *prevData, TiXmlEncoding encoding)
virtual const TiXmlDocument * ToDocument() const
Cast to a more defined type. Will return null if not of the requested type.
virtual void Print(FILE *cfile, int depth) const override
const TiXmlDocument * GetDocument() const
@ TIXML_ERROR_PARSING_COMMENT
virtual const char * Parse(const char *p, TiXmlParsingData *data=0, TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING) override
const char * Value() const
Return the value of this attribute.
const TiXmlElement * FirstChildElement(const std::string &_value) const
STL std::string form.
TiXmlBase(const TiXmlBase &)
TiXmlDeclaration()
Construct an empty declaration.
TiXmlHandle_t FirstChildElement() const
Return a handle to the first child element.
virtual TiXmlNode * Clone() const override
Creates a copy of this Declaration and returns it.
const char * Indent()
Query the indention string.
virtual bool VisitEnter(const TiXmlDocument &doc) override
Visit a document.
virtual bool Accept(TiXmlVisitor *content) const override
@ TIXML_ERROR_DOCUMENT_TOP_ONLY
int QueryIntAttribute(const std::string &name, int *_value) const
TiXmlHandle_t FirstChild(const std::string &_value) const
virtual bool Accept(TiXmlVisitor *visitor) const override
const TiXmlAttribute * Last() const
void operator=(const TiXmlBase &base)
TiXmlHandle_t operator=(const TiXmlHandle_t &ref)
void Clear()
Delete all the children of this node. Does not affect 'this'.
void operator=(const TiXmlNode &base)
TiXmlNode * LastChild()
The last child of this node. Will be null if there are no children.
virtual TiXmlNode * Clone() const override
@ TIXML_ERROR_READING_ATTRIBUTES
const TiXmlAttribute * LastAttribute() const
Access the last attribute in this element.
bool LoadFile(const std::string &filename, TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING)
TiXmlNode * IterateChildren(const std::string &_value, const TiXmlNode *previous)
STL std::string form.
void SetValue(const char *_value)
Set the value.
TiXmlAttribute(const char *_name, const char *_value)
Construct an attribute with a name and value.
const TiXmlAttribute * FirstAttribute() const
Access the first attribute in this element.
virtual void Print(FILE *cfile, int depth) const override
TiXmlNode * ToNode() const
static void PutString(const TIXML_STRING &str, TIXML_STRING *out)
virtual bool VisitExit(const TiXmlDocument &doc) override
Visit a document.
virtual bool Accept(TiXmlVisitor *content) const override
bool operator<(const TiXmlAttribute &rhs) const
static bool StringEqual(const char *p, const char *endTag, bool ignoreCase, TiXmlEncoding encoding)
const TIXML_STRING & NameTStr() const
@ TIXML_ERROR_PARSING_EMPTY
const char * CStr()
Return the result.
bool SaveFile() const
Save a file using the current document value. Returns true if successful.
virtual TiXmlNode * Clone() const =0
const TiXmlAttribute * Find(const std::string &_name) const
int QueryDoubleAttribute(const std::string &name, double *_value) const
TiXmlAttribute(const TiXmlAttribute &)
TinyXML class. See http://www.grinninglizard.com/tinyxml.
const std::string * Attribute(const std::string &name, double *d) const
const TiXmlElement * NextSiblingElement() const
void RemoveAttribute(const char *name)
int QueryDoubleAttribute(const char *name, double *_value) const
QueryDoubleAttribute examines the attribute - see QueryIntAttribute().
void operator=(const TiXmlDeclaration ©)
const char * Standalone() const
Is this a standalone document?
TiXmlElement * Element() const
const void * GetUserData() const
Get a pointer to arbitrary user data.
TiXmlHandle_t FirstChildElement(const std::string &_value) const
void SetDocument(TiXmlDocument *doc)
int QueryDoubleValue(double *_value) const
QueryDoubleValue examines the value string. See QueryIntValue().
const std::string & ValueStr() const
void SetName(const char *_name)
Set the name of this attribute.
TinyXML class. See http://www.grinninglizard.com/tinyxml.
bool operator==(const TiXmlAttribute &rhs) const
const std::string * Attribute(const std::string &name, int *i) const
static bool IsWhiteSpaceCondensed()
Return the current white space setting.
const char * LineBreak()
Query the current line breaking string.
@ TIXML_ERROR_READING_END_TAG
int QueryIntValue(int *_value) const
void CopyTo(TiXmlElement *target) const
TiXmlNode * NextSibling(const std::string &_value)
STL std::string form.
void SetAttribute(const char *name, const char *_value)
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) override
TiXmlHandle_t ChildElement(const std::string &_value, int index) const
virtual TiXmlDeclaration * ToDeclaration()
Cast to a more defined type. Will return null if not of the requested type.
virtual TiXmlNode * Clone() const override
Creates a new Element and returns it - the returned element is a copy.
TiXmlNode * FirstChild(const std::string &_value)
STL std::string form.
const TiXmlElement * PreviousSiblingElement() const
virtual void Print(FILE *cfile, int depth) const override
TinyXML class. See http://www.grinninglizard.com/tinyxml.
virtual bool VisitEnter(const TiXmlDocument &)
Visit a document.
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) override
TiXmlElement * NextSiblingElement(const char *_next)
static bool StreamWhiteSpace(std::istream *in, TIXML_STRING *tag)
TiXmlAttribute * Previous()
TiXmlElement * NextSiblingElement()
TiXmlHandle_t ChildElement(const char *value, int index) const
const TiXmlAttribute * Next() const
Get the next sibling attribute in the DOM. Returns null at end.
double DoubleValue() const
Return the value of this attribute, converted to a double.
@ TIXML_ERROR_STRING_COUNT
TinyXML class. See http://www.grinninglizard.com/tinyxml.
TiXmlNode * PreviousSibling(const char *_prev)
void SetAttribute(const std::string &name, int _value)
TinyXML class. See http://www.grinninglizard.com/tinyxml.
void SetAttribute(const std::string &name, const std::string &_value)
STL std::string form.
TiXmlNode * InsertBeforeChild(TiXmlNode *beforeThis, const TiXmlNode &addThis)
const TiXmlEncoding TIXML_DEFAULT_ENCODING
void SetIntValue(int _value)
Set the value from an integer.
const TiXmlNode * Parent() const
static Entity entity[NUM_ENTITY]
virtual TiXmlUnknown * ToUnknown()
Cast to a more defined type. Will return null if not of the requested type.
const TiXmlAttribute * Find(const char *_name) const
virtual bool Visit(const TiXmlUnknown &)
Visit an unknow node.
virtual void StreamIn(std::istream *in, TIXML_STRING *tag)=0
TiXmlNode * InsertEndChild(const TiXmlNode &addThis)
@ TIXML_ERROR_OPENING_FILE
bool CDATA() const
Queries whether this represents text using a CDATA section.
static void SetCondenseWhiteSpace(bool condense)
const int TIXML_MAJOR_VERSION
virtual TiXmlNode * Clone() const override
Creates a copy of this Unknown and returns it.
void CopyTo(TiXmlDocument *target) const
virtual void Print(FILE *cfile, int depth) const =0
const char * ErrorDesc() const
Contains a textual (english) description of the error if one occurs.
virtual bool VisitExit(const TiXmlDocument &)
Visit a document.
@ TIXML_ERROR_EMBEDDED_NULL
@ TIXML_ERROR_PARSING_CDATA
TiXmlNode * IterateChildren(const TiXmlNode *previous)
virtual void StreamIn(std::istream *in, TIXML_STRING *tag) override
TiXmlDocument * GetDocument()
static const char * SkipWhiteSpace(const char *, TiXmlEncoding encoding)
void operator=(const TiXmlAttribute &base)
const TiXmlElement * RootElement() const
friend std::string & operator<<(std::string &out, const TiXmlNode &base)
Appends the XML node or attribute to a std::string.
TiXmlElement * RootElement()
static bool condenseWhiteSpace
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) override
const TiXmlElement * FirstChildElement() const
Convenience function to get through elements.
@ TIXML_ERROR_PARSING_DECLARATION
virtual void Print(FILE *cfile, int depth) const override
virtual const TiXmlDocument * ToDocument() const override
Cast to a more defined type. Will return null not of the requested type.
const TiXmlAttribute * First() const
static const char * ReadName(const char *p, TIXML_STRING *name, TiXmlEncoding encoding)
virtual TiXmlComment * ToComment()
Cast to a more defined type. Will return null if not of the requested type.
virtual void Print(FILE *cfile, int depth, TIXML_STRING *str) const
virtual const char * Parse(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding) override
TinyXML class. See http://www.grinninglizard.com/tinyxml.
TinyXML class. See http://www.grinninglizard.com/tinyxml.
const char * Value() const
@ TIXML_ERROR_OUT_OF_MEMORY
void operator=(const TiXmlDocument ©)
TinyXML class. See http://www.grinninglizard.com/tinyxml.
virtual TiXmlDeclaration * ToDeclaration() override
Cast to a more defined type. Will return null not of the requested type.
TiXmlUnknown * ToUnknown() const
TiXmlAttribute()
Construct an empty attribute.
@ TIXML_ERROR_DOCUMENT_EMPTY
void Add(TiXmlAttribute *attribute)
friend std::ostream & operator<<(std::ostream &out, const TiXmlNode &base)
void SetDoubleValue(double _value)
Set the value from a double.
const TiXmlNode * LastChild(const std::string &_value) const
STL std::string form.
@ TIXML_ERROR_PARSING_UNKNOWN
TiXmlElement * FirstChildElement()
virtual bool VisitEnter(const TiXmlElement &, const TiXmlAttribute *)
Visit an element.
@ TIXML_ERROR_PARSING_ELEMENT
bool LoadFile(TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING)
bool RemoveChild(TiXmlNode *removeThis)
Delete a child of this node.
void operator=(const TiXmlText &base)
virtual TiXmlElement * ToElement()
Cast to a more defined type. Will return null if not of the requested type.
static const char * ReadText(const char *in, TIXML_STRING *text, bool ignoreWhiteSpace, const char *endTag, bool ignoreCase, TiXmlEncoding encoding)
const TiXmlElement * NextSiblingElement(const std::string &_value) const
STL std::string form.
static int IsAlphaNum(unsigned char anyByte, TiXmlEncoding encoding)
int QueryIntAttribute(const char *name, int *_value) const
TiXmlAttribute * FirstAttribute()
void SetValue(const char *_value)
virtual bool Visit(const TiXmlDeclaration &declaration) override
Visit a declaration.
TinyXML class. See http://www.grinninglizard.com/tinyxml.
virtual TiXmlUnknown * ToUnknown() override
Cast to a more defined type. Will return null not of the requested type.
TiXmlNode(const TiXmlNode &)
TiXmlNode * PreviousSibling()
virtual const TiXmlUnknown * ToUnknown() const
Cast to a more defined type. Will return null if not of the requested type.
void Remove(TiXmlAttribute *attribute)
void * userData
Field containing a generic user pointer.
const TiXmlAttribute * AttributeNode(const char *name) const
static const int utf8ByteTable[256]
const char * Name() const
Return the name of this attribute.
virtual const TiXmlUnknown * ToUnknown() const override
Cast to a more defined type. Will return null not of the requested type.
void SetLineBreak(const char *_lineBreak)
static const char * errorString[TIXML_ERROR_STRING_COUNT]
static int IsAlpha(unsigned char anyByte, TiXmlEncoding encoding)
TiXmlCursor errorLocation
virtual void StreamIn(std::istream *in, TIXML_STRING *tag) override
virtual void StreamIn(std::istream *in, TIXML_STRING *tag) override
TiXmlUnknown(const TiXmlUnknown ©)
void SetUserData(void *user)
Set a pointer to arbitrary user data.
virtual TiXmlText * ToText() override
Cast to a more defined type. Will return null not of the requested type.
virtual bool Accept(TiXmlVisitor *visitor) const =0
virtual const TiXmlText * ToText() const
Cast to a more defined type. Will return null if not of the requested type.
const TiXmlNode * NextSibling(const std::string &_value) const
STL std::string form.
TiXmlNode * Identify(const char *start, TiXmlEncoding encoding)
TiXmlNode * InsertAfterChild(TiXmlNode *afterThis, const TiXmlNode &addThis)
const char * GetText() const
TinyXML class. See http://www.grinninglizard.com/tinyxml.
TinyXML class. See http://www.grinninglizard.com/tinyxml.
TiXmlUnknown * Unknown() const
@ TIXML_ERROR_READING_ELEMENT_VALUE
static bool IsWhiteSpace(int c)
static int ToLower(int v, TiXmlEncoding encoding)
bool SaveFile(const std::string &filename) const
< STL std::string version.
TiXmlElement * NextSiblingElement(const std::string &_value)
STL std::string form.
const int TIXML_MINOR_VERSION
TiXmlHandle_t FirstChild() const
Return a handle to the first child node.
TiXmlNode * LastChild(const char *_value)
The last child of this node matching 'value'. Will be null if there are no children.
static const char * GetChar(const char *p, char *_value, int *length, TiXmlEncoding encoding)
TiXmlAttribute * Find(const std::string &_name)
virtual bool Visit(const TiXmlComment &)
Visit a comment node.
TiXmlText(const TiXmlText ©)
TiXmlDocument()
Create an empty document, that has no name.
bool operator>(const TiXmlAttribute &rhs) const
virtual TiXmlElement * ToElement() override
Cast to a more defined type. Will return null not of the requested type.
const TiXmlNode * IterateChildren(const TiXmlNode *previous) const
TiXmlNode * NextSibling()
TiXmlNode * Parent()
One step up the DOM.
void SetTabSize(int _tabsize)
friend std::istream & operator>>(std::istream &in, TiXmlNode &base)
virtual const TiXmlDeclaration * ToDeclaration() const
Cast to a more defined type. Will return null if not of the requested type.