SO3Engine
|
tinyxml2.h
Go to the documentation of this file.
52 AStyle.exe --style=1tbs --indent-switches --break-closing-brackets --indent-preprocessor tinyxml2.cpp tinyxml2.h
84# define TIXMLASSERT( x ) if ( !(x)) { __android_log_assert( "assert", "grinliz", "ASSERT in '%s' at %d.", __FILE__, __LINE__ ); }
157 };
454 virtual bool VisitEnter( const XMLElement& /*element*/, const XMLAttribute* /*firstAttribute*/ ) {
723 return const_cast<XMLElement*>(const_cast<const XMLNode*>(this)->PreviousSiblingElement( value ) );
1021};
Definition tinyxml2.h:208
Definition tinyxml2.h:308
virtual int ItemSize() const =0
virtual void * Alloc()=0
virtual void Free(void *)=0
virtual void SetTracked()=0
Definition tinyxml2.h:325
Definition tinyxml2.h:144
void SetStr(const char *str, int flags=0)
~StrPair()
char * ParseName(char *in)
@ ATTRIBUTE_VALUE_LEAVE_ENTITIES
Definition tinyxml2.h:155
@ NEEDS_NEWLINE_NORMALIZATION
Definition tinyxml2.h:148
@ TEXT_ELEMENT_LEAVE_ENTITIES
Definition tinyxml2.h:152
const char * GetStr()
char * ParseText(char *in, const char *endTag, int strFlags)
Definition tinyxml2.h:1031
XMLError QueryFloatValue(float *value) const
See QueryIntValue.
unsigned UnsignedValue() const
Query as an unsigned integer. See IntValue()
Definition tinyxml2.h:1055
XMLError QueryDoubleValue(double *value) const
See QueryIntValue.
void SetAttribute(const char *value)
Set the attribute to a string value.
XMLError QueryUnsignedValue(unsigned int *value) const
See QueryIntValue.
XMLError QueryIntValue(int *value) const
Definition tinyxml2.h:902
virtual bool Accept(XMLVisitor *visitor) const
virtual bool ShallowEqual(const XMLNode *compare) const
XMLComment & operator=(const XMLComment &)
virtual XMLNode * ShallowClone(XMLDocument *document) const
XMLComment(const XMLComment &)
char * ParseDeep(char *, StrPair *endTag)
XMLComment(XMLDocument *doc)
virtual const XMLComment * ToComment() const
Definition tinyxml2.h:908
virtual ~XMLComment()
Definition tinyxml2.h:1844
XMLConstHandle(const XMLNode *node)
Definition tinyxml2.h:1846
XMLConstHandle & operator=(const XMLConstHandle &ref)
Definition tinyxml2.h:1856
XMLConstHandle(const XMLConstHandle &ref)
Definition tinyxml2.h:1852
const XMLDeclaration * ToDeclaration() const
Definition tinyxml2.h:1899
const XMLConstHandle NextSiblingElement(const char *_value=0) const
Definition tinyxml2.h:1882
XMLConstHandle(const XMLNode &node)
Definition tinyxml2.h:1849
const XMLConstHandle FirstChildElement(const char *value=0) const
Definition tinyxml2.h:1864
const XMLConstHandle PreviousSibling() const
Definition tinyxml2.h:1873
const XMLConstHandle PreviousSiblingElement(const char *_value=0) const
Definition tinyxml2.h:1876
const XMLConstHandle LastChildElement(const char *_value=0) const
Definition tinyxml2.h:1870
const XMLConstHandle NextSibling() const
Definition tinyxml2.h:1879
const XMLConstHandle FirstChild() const
Definition tinyxml2.h:1861
Definition tinyxml2.h:940
XMLDeclaration & operator=(const XMLDeclaration &)
char * ParseDeep(char *, StrPair *endTag)
virtual ~XMLDeclaration()
XMLDeclaration(const XMLDeclaration &)
virtual bool Accept(XMLVisitor *visitor) const
virtual const XMLDeclaration * ToDeclaration() const
Definition tinyxml2.h:946
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
Definition tinyxml2.h:943
virtual bool ShallowEqual(const XMLNode *compare) const
virtual XMLNode * ShallowClone(XMLDocument *document) const
XMLDeclaration(XMLDocument *doc)
Definition tinyxml2.h:1502
XMLError Parse(const char *xml, size_t nBytes=(size_t)(-1))
char * Identify(char *p, XMLNode **node)
XMLError LoadFile(const char *filename)
XMLComment * NewComment(const char *comment)
XMLElement * NewElement(const char *name)
XMLUnknown * NewUnknown(const char *text)
XMLError LoadFile(FILE *)
virtual bool ShallowEqual(const XMLNode *) const
Definition tinyxml2.h:1681
XMLError SaveFile(const char *filename, bool compact=false)
void Print(XMLPrinter *streamer=0) const
const char * GetErrorStr1() const
Return a possibly helpful diagnostic location or string.
Definition tinyxml2.h:1662
XMLError SaveFile(FILE *fp, bool compact=false)
virtual bool Accept(XMLVisitor *visitor) const
virtual const XMLDocument * ToDocument() const
Definition tinyxml2.h:1512
const char * GetErrorStr2() const
Return a possibly helpful secondary diagnostic location or string.
Definition tinyxml2.h:1666
XMLText * NewText(const char *text)
void SetError(XMLError error, const char *str1, const char *str2)
XMLDeclaration * NewDeclaration(const char *text=0)
XMLDocument(bool processEntities=true, Whitespace=PRESERVE_WHITESPACE)
constructor
~XMLDocument()
virtual XMLNode * ShallowClone(XMLDocument *) const
Definition tinyxml2.h:1678
Definition tinyxml2.h:1130
int QueryAttribute(const char *name, int *value) const
Definition tinyxml2.h:1282
const char * GetText() const
void SetAttribute(const char *name, const char *value)
Sets the named attribute to value.
Definition tinyxml2.h:1303
XMLError QueryBoolAttribute(const char *name, bool *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1240
XMLError QueryUnsignedText(unsigned *uval) const
See QueryIntText()
const XMLAttribute * FindAttribute(const char *name) const
Query a specific attribute in the list.
int QueryAttribute(const char *name, unsigned int *value) const
Definition tinyxml2.h:1286
virtual XMLNode * ShallowClone(XMLDocument *document) const
void SetText(const char *inText)
void SetAttribute(const char *name, double value)
Sets the named attribute to value.
Definition tinyxml2.h:1323
XMLError QueryUnsignedAttribute(const char *name, unsigned int *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1232
virtual bool Accept(XMLVisitor *visitor) const
const char * Attribute(const char *name, const char *value=0) const
int QueryAttribute(const char *name, float *value) const
Definition tinyxml2.h:1298
const XMLAttribute * FirstAttribute() const
Return the first attribute in the list.
Definition tinyxml2.h:1339
void SetText(float value)
Convenience method for setting text inside and element. See SetText() for important limitations.
void SetAttribute(const char *name, float value)
Sets the named attribute to value.
Definition tinyxml2.h:1328
XMLError QueryDoubleAttribute(const char *name, double *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1248
void SetText(double value)
Convenience method for setting text inside and element. See SetText() for important limitations.
void SetText(unsigned value)
Convenience method for setting text inside and element. See SetText() for important limitations.
int QueryAttribute(const char *name, double *value) const
Definition tinyxml2.h:1294
XMLError QueryIntAttribute(const char *name, int *value) const
Definition tinyxml2.h:1224
XMLError QueryIntText(int *ival) const
void SetName(const char *str, bool staticMem=false)
Set the name of the element.
Definition tinyxml2.h:1139
virtual const XMLElement * ToElement() const
Definition tinyxml2.h:1146
int QueryAttribute(const char *name, bool *value) const
Definition tinyxml2.h:1290
void SetAttribute(const char *name, bool value)
Sets the named attribute to value.
Definition tinyxml2.h:1318
char * ParseDeep(char *p, StrPair *endTag)
void SetAttribute(const char *name, int value)
Sets the named attribute to value.
Definition tinyxml2.h:1308
const char * Name() const
Get the name of an element (which is the Value() of the node.)
Definition tinyxml2.h:1135
XMLError QueryFloatAttribute(const char *name, float *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1256
int IntAttribute(const char *name) const
Definition tinyxml2.h:1181
virtual bool ShallowEqual(const XMLNode *compare) const
void SetAttribute(const char *name, unsigned value)
Sets the named attribute to value.
Definition tinyxml2.h:1313
void SetText(bool value)
Convenience method for setting text inside and element. See SetText() for important limitations.
void SetText(int value)
Convenience method for setting text inside and element. See SetText() for important limitations.
void DeleteAttribute(const char *name)
Definition tinyxml2.h:1760
XMLHandle PreviousSiblingElement(const char *_value=0)
Get the previous sibling element of this handle.
Definition tinyxml2.h:1801
XMLHandle LastChildElement(const char *_value=0)
Get the last child element of this handle.
Definition tinyxml2.h:1793
XMLHandle NextSiblingElement(const char *_value=0)
Get the next sibling element of this handle.
Definition tinyxml2.h:1809
XMLDeclaration * ToDeclaration()
Safe cast to XMLDeclaration. This can return null.
Definition tinyxml2.h:1830
XMLHandle FirstChildElement(const char *value=0)
Get the first child element of this handle.
Definition tinyxml2.h:1785
XMLHandle(XMLNode *node)
Create a handle from any node (at any depth of the tree.) This can be a null pointer.
Definition tinyxml2.h:1763
Definition tinyxml2.h:586
void DeleteChildren()
const char * Value() const
void SetValue(const char *val, bool staticMem=false)
const XMLElement * LastChildElement(const char *value=0) const
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
Definition tinyxml2.h:617
XMLElement * NextSiblingElement(const char *value=0)
Definition tinyxml2.h:738
XMLNode(XMLDocument *)
void DeleteChild(XMLNode *node)
const XMLElement * NextSiblingElement(const char *value=0) const
Get the next (right) sibling element of this node, with an optionally supplied name.
const XMLElement * FirstChildElement(const char *value=0) const
XMLNode & operator=(const XMLNode &)
const XMLNode * LastChild() const
Get the last child node, or null if none exists.
Definition tinyxml2.h:693
const XMLDocument * GetDocument() const
Get the XMLDocument that owns this XMLNode.
Definition tinyxml2.h:592
XMLNode(const XMLNode &)
virtual bool ShallowEqual(const XMLNode *compare) const =0
virtual char * ParseDeep(char *, StrPair *)
virtual bool Accept(XMLVisitor *visitor) const =0
virtual ~XMLNode()
virtual XMLNode * ShallowClone(XMLDocument *document) const =0
XMLNode * InsertAfterChild(XMLNode *afterThis, XMLNode *addThis)
const XMLNode * PreviousSibling() const
Get the previous (left) sibling node of this node.
Definition tinyxml2.h:711
virtual const XMLDeclaration * ToDeclaration() const
Definition tinyxml2.h:637
XMLElement * PreviousSiblingElement(const char *value=0)
Definition tinyxml2.h:722
const XMLElement * PreviousSiblingElement(const char *value=0) const
Get the previous (left) sibling element of this node, with an optionally supplied name.
const XMLNode * FirstChild() const
Get the first child node, or null if none exists.
Definition tinyxml2.h:675
XMLNode * InsertFirstChild(XMLNode *addThis)
virtual const XMLDocument * ToDocument() const
Definition tinyxml2.h:634
XMLNode * InsertEndChild(XMLNode *addThis)
XMLElement * LastChildElement(const char *value=0)
Definition tinyxml2.h:706
XMLElement * FirstChildElement(const char *value=0)
Definition tinyxml2.h:688
const XMLNode * NextSibling() const
Get the next (right) sibling node of this node.
Definition tinyxml2.h:727
Definition tinyxml2.h:1951
virtual void PrintSpace(int depth)
void PushAttribute(const char *name, double value)
void PushHeader(bool writeBOM, bool writeDeclaration)
void OpenElement(const char *name, bool compactMode=false)
virtual bool VisitEnter(const XMLElement &element, const XMLAttribute *attribute)
Visit an element.
void PushDeclaration(const char *value)
virtual bool CompactMode(const XMLElement &)
Definition tinyxml2.h:2034
void PushAttribute(const char *name, bool value)
void PushAttribute(const char *name, int value)
void SealElement()
void PushAttribute(const char *name, const char *value)
If streaming, add an attribute to an open element.
virtual bool Visit(const XMLDeclaration &declaration)
Visit a declaration.
void PushAttribute(const char *name, unsigned value)
XMLPrinter(FILE *file=0, bool compact=false, int depth=0)
void PushUnknown(const char *value)
void Print(const char *format,...)
virtual void CloseElement(bool compactMode=false)
If streaming, close the Element.
Definition tinyxml2.h:863
XMLText(const XMLText &)
virtual bool Accept(XMLVisitor *visitor) const
XMLText & operator=(const XMLText &)
char * ParseDeep(char *, StrPair *endTag)
void SetCData(bool isCData)
Declare whether this should be CDATA or standard text.
Definition tinyxml2.h:877
virtual bool ShallowEqual(const XMLNode *compare) const
virtual XMLNode * ShallowClone(XMLDocument *document) const
Definition tinyxml2.h:972
virtual bool ShallowEqual(const XMLNode *compare) const
char * ParseDeep(char *, StrPair *endTag)
virtual bool Accept(XMLVisitor *visitor) const
virtual XMLNode * ShallowClone(XMLDocument *document) const
XMLUnknown(XMLDocument *doc)
virtual ~XMLUnknown()
XMLUnknown(const XMLUnknown &)
virtual const XMLUnknown * ToUnknown() const
Definition tinyxml2.h:978
XMLUnknown & operator=(const XMLUnknown &)
Definition tinyxml2.h:485
static const char * GetCharacterRef(const char *p, char *value, int *length)
static void ToStr(unsigned v, char *buffer, int bufferSize)
static const char * SkipWhiteSpace(const char *p)
Definition tinyxml2.h:489
static int IsUTF8Continuation(const char p)
Definition tinyxml2.h:534
static bool ToUnsigned(const char *str, unsigned *value)
static void ToStr(int v, char *buffer, int bufferSize)
static void ToStr(double v, char *buffer, int bufferSize)
static void ToStr(float v, char *buffer, int bufferSize)
static bool ToDouble(const char *str, double *value)
static void ConvertUTF32ToUTF8(unsigned long input, char *output, int *length)
static bool IsNameStartChar(unsigned char ch)
Definition tinyxml2.h:505
static bool ToFloat(const char *str, float *value)
static bool ToInt(const char *str, int *value)
static bool StringEqual(const char *p, const char *q, int nChar=INT_MAX)
Definition tinyxml2.h:518
static const char * ReadBOM(const char *p, bool *hasBOM)
static void ToStr(bool v, char *buffer, int bufferSize)
static bool ToBool(const char *str, bool *value)
Definition tinyxml2.h:440
virtual bool VisitEnter(const XMLElement &, const XMLAttribute *)
Visit an element.
Definition tinyxml2.h:454
Definition tinyxml2.h:127
@ XML_ERROR_FILE_COULD_NOT_BE_OPENED
Definition tinyxml2.h:1004
int TIXML_SNPRINTF(char *buffer, size_t size, const char *format,...)
Definition tinyxml2.h:103
Generated by 1.9.8