BitmapToolkit Scol plugin
|
tinyxml2.h
Go to the documentation of this file.
45 AStyle.exe --style=1tbs --indent-switches --break-closing-brackets --indent-preprocessor tinyxml2.cpp tinyxml2.h
60# define TIXMLASSERT( x ) if ( !(x)) { __android_log_assert( "assert", "grinliz", "ASSERT in '%s' at %d.", __FILE__, __LINE__ ); }
132 };
400 virtual bool VisitEnter( const XMLElement& /*element*/, const XMLAttribute* /*firstAttribute*/ ) {
436 while( !IsUTF8Continuation(*p) && std::isspace( *reinterpret_cast<const unsigned char*>(p) ) ) {
663 return const_cast<XMLElement*>(const_cast<const XMLNode*>(this)->PreviousSiblingElement( value ) );
948};
Definition tinyxml2.h:183
Definition tinyxml2.h:274
virtual int ItemSize() const =0
virtual void * Alloc()=0
virtual void Free(void *)=0
Definition tinyxml2.h:290
Definition tinyxml2.h:119
@ ATTRIBUTE_VALUE_LEAVE_ENTITIES
Definition tinyxml2.h:130
@ NEEDS_NEWLINE_NORMALIZATION
Definition tinyxml2.h:123
@ TEXT_ELEMENT_LEAVE_ENTITIES
Definition tinyxml2.h:127
char * ParseText(char *in, const char *endTag, int strFlags)
Definition tinyxml2.cpp:113
Definition tinyxml2.h:958
unsigned UnsignedValue() const
Query as an unsigned integer. See IntAttribute()
Definition tinyxml2.h:984
void SetAttribute(const char *value)
Set the attribute to a string value.
Definition tinyxml2.cpp:1122
XMLError QueryUnsignedValue(unsigned int *value) const
See QueryIntAttribute.
Definition tinyxml2.cpp:1086
XMLError QueryIntValue(int *value) const
Definition tinyxml2.cpp:1077
Definition tinyxml2.h:829
virtual bool Accept(XMLVisitor *visitor) const
Definition tinyxml2.cpp:943
XMLComment & operator=(const XMLComment &)
virtual bool ShallowEqual(const XMLNode *compare) const
Definition tinyxml2.cpp:937
XMLComment(const XMLComment &)
virtual XMLNode * ShallowClone(XMLDocument *document) const
Definition tinyxml2.cpp:927
virtual const XMLComment * ToComment() const
Definition tinyxml2.h:835
Definition tinyxml2.h:1681
XMLConstHandle(const XMLNode *node)
Definition tinyxml2.h:1683
XMLConstHandle & operator=(const XMLConstHandle &ref)
Definition tinyxml2.h:1693
XMLConstHandle(const XMLConstHandle &ref)
Definition tinyxml2.h:1689
const XMLDeclaration * ToDeclaration() const
Definition tinyxml2.h:1736
const XMLConstHandle NextSiblingElement(const char *_value=0) const
Definition tinyxml2.h:1719
XMLConstHandle(const XMLNode &node)
Definition tinyxml2.h:1686
const XMLConstHandle FirstChildElement(const char *value=0) const
Definition tinyxml2.h:1701
const XMLConstHandle PreviousSibling() const
Definition tinyxml2.h:1710
const XMLConstHandle PreviousSiblingElement(const char *_value=0) const
Definition tinyxml2.h:1713
const XMLConstHandle LastChildElement(const char *_value=0) const
Definition tinyxml2.h:1707
const XMLConstHandle NextSibling() const
Definition tinyxml2.h:1716
const XMLConstHandle FirstChild() const
Definition tinyxml2.h:1698
Definition tinyxml2.h:867
XMLDeclaration & operator=(const XMLDeclaration &)
char * ParseDeep(char *, StrPair *endTag)
Definition tinyxml2.cpp:962
XMLDeclaration(const XMLDeclaration &)
virtual const XMLDeclaration * ToDeclaration() const
Definition tinyxml2.h:873
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
Definition tinyxml2.h:870
virtual bool Accept(XMLVisitor *visitor) const
Definition tinyxml2.cpp:991
virtual XMLNode * ShallowClone(XMLDocument *document) const
Definition tinyxml2.cpp:974
virtual bool ShallowEqual(const XMLNode *compare) const
Definition tinyxml2.cpp:984
Definition tinyxml2.h:1341
XMLError Parse(const char *xml, size_t nBytes=(size_t)(-1))
Definition tinyxml2.cpp:1661
XMLError LoadFile(std::FILE *)
XMLComment * NewComment(const char *comment)
Definition tinyxml2.cpp:1538
XMLElement * NewElement(const char *name)
Definition tinyxml2.cpp:1529
XMLUnknown * NewUnknown(const char *text)
Definition tinyxml2.cpp:1565
XMLError SaveFile(std::FILE *fp, bool compact=false)
virtual bool ShallowEqual(const XMLNode *) const
Definition tinyxml2.h:1517
XMLError SaveFile(const char *filename, bool compact=false)
Definition tinyxml2.cpp:1634
const char * GetErrorStr1() const
Return a possibly helpful diagnostic location or string.
Definition tinyxml2.h:1501
virtual bool Accept(XMLVisitor *visitor) const
Definition tinyxml2.cpp:570
virtual const XMLDocument * ToDocument() const
Definition tinyxml2.h:1351
const char * GetErrorStr2() const
Return a possibly helpful secondary diagnostic location or string.
Definition tinyxml2.h:1505
void SetError(XMLError error, const char *str1, const char *str2)
Definition tinyxml2.cpp:1699
XMLDeclaration * NewDeclaration(const char *text=0)
Definition tinyxml2.cpp:1556
virtual XMLNode * ShallowClone(XMLDocument *) const
Definition tinyxml2.h:1514
Definition tinyxml2.h:1059
void SetAttribute(const char *name, const char *value)
Sets the named attribute to value.
Definition tinyxml2.h:1194
XMLError QueryBoolAttribute(const char *name, bool *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1169
const XMLAttribute * FindAttribute(const char *name) const
Query a specific attribute in the list.
Definition tinyxml2.cpp:1196
void SetAttribute(const char *name, double value)
Sets the named attribute to value.
Definition tinyxml2.h:1214
XMLError QueryUnsignedAttribute(const char *name, unsigned int *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1161
const char * Attribute(const char *name, const char *value=0) const
Definition tinyxml2.cpp:1208
const XMLAttribute * FirstAttribute() const
Return the first attribute in the list.
Definition tinyxml2.h:1225
XMLError QueryIntText(int *_value) const
Definition tinyxml2.cpp:1230
XMLError QueryDoubleAttribute(const char *name, double *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1177
virtual bool ShallowEqual(const XMLNode *compare) const
Definition tinyxml2.cpp:1446
XMLError QueryIntAttribute(const char *name, int *value) const
Definition tinyxml2.h:1153
void SetName(const char *str, bool staticMem=false)
Set the name of the element.
Definition tinyxml2.h:1068
virtual const XMLElement * ToElement() const
Definition tinyxml2.h:1075
virtual bool Accept(XMLVisitor *visitor) const
Definition tinyxml2.cpp:1471
void SetAttribute(const char *name, bool value)
Sets the named attribute to value.
Definition tinyxml2.h:1209
char * ParseDeep(char *p, StrPair *endTag)
Definition tinyxml2.cpp:1401
void SetAttribute(const char *name, int value)
Sets the named attribute to value.
Definition tinyxml2.h:1199
virtual XMLNode * ShallowClone(XMLDocument *document) const
Definition tinyxml2.cpp:1433
const char * Name() const
Get the name of an element (which is the Value() of the node.)
Definition tinyxml2.h:1064
XMLError QueryFloatAttribute(const char *name, float *value) const
See QueryIntAttribute()
Definition tinyxml2.h:1185
int IntAttribute(const char *name) const
Definition tinyxml2.h:1110
void SetAttribute(const char *name, unsigned value)
Sets the named attribute to value.
Definition tinyxml2.h:1204
void DeleteAttribute(const char *name)
Definition tinyxml2.cpp:1322
Definition tinyxml2.h:1597
XMLHandle PreviousSiblingElement(const char *_value=0)
Get the previous sibling element of this handle.
Definition tinyxml2.h:1638
XMLHandle LastChildElement(const char *_value=0)
Get the last child element of this handle.
Definition tinyxml2.h:1630
XMLHandle NextSiblingElement(const char *_value=0)
Get the next sibling element of this handle.
Definition tinyxml2.h:1646
XMLDeclaration * ToDeclaration()
Safe cast to XMLDeclaration. This can return null.
Definition tinyxml2.h:1667
XMLHandle FirstChildElement(const char *value=0)
Get the first child element of this handle.
Definition tinyxml2.h:1622
XMLHandle(XMLNode *node)
Create a handle from any node (at any depth of the tree.) This can be a null pointer.
Definition tinyxml2.h:1600
Definition tinyxml2.h:524
void SetValue(const char *val, bool staticMem=false)
Definition tinyxml2.cpp:603
const XMLElement * LastChildElement(const char *value=0) const
Definition tinyxml2.cpp:736
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
Definition tinyxml2.h:555
XMLElement * NextSiblingElement(const char *value=0)
Definition tinyxml2.h:678
const XMLElement * NextSiblingElement(const char *value=0) const
Get the next (right) sibling element of this node, with an opitionally supplied name.
Definition tinyxml2.cpp:750
const XMLElement * FirstChildElement(const char *value=0) const
Definition tinyxml2.cpp:722
XMLNode & operator=(const XMLNode &)
const XMLNode * LastChild() const
Get the last child node, or null if none exists.
Definition tinyxml2.h:633
const XMLDocument * GetDocument() const
Get the XMLDocument that owns this XMLNode.
Definition tinyxml2.h:530
XMLNode(const XMLNode &)
virtual bool ShallowEqual(const XMLNode *compare) const =0
virtual bool Accept(XMLVisitor *visitor) const =0
virtual XMLNode * ShallowClone(XMLDocument *document) const =0
XMLNode * InsertAfterChild(XMLNode *afterThis, XMLNode *addThis)
Definition tinyxml2.cpp:700
const XMLNode * PreviousSibling() const
Get the previous (left) sibling node of this node.
Definition tinyxml2.h:651
virtual const XMLDeclaration * ToDeclaration() const
Definition tinyxml2.h:575
XMLElement * PreviousSiblingElement(const char *value=0)
Definition tinyxml2.h:662
const XMLElement * PreviousSiblingElement(const char *value=0) const
Get the previous (left) sibling element of this node, with an opitionally supplied name.
Definition tinyxml2.cpp:762
const XMLNode * FirstChild() const
Get the first child node, or null if none exists.
Definition tinyxml2.h:615
XMLNode * InsertFirstChild(XMLNode *addThis)
Definition tinyxml2.cpp:676
virtual const XMLDocument * ToDocument() const
Definition tinyxml2.h:572
XMLNode * InsertEndChild(XMLNode *addThis)
Definition tinyxml2.cpp:653
XMLElement * LastChildElement(const char *value=0)
Definition tinyxml2.h:646
XMLElement * FirstChildElement(const char *value=0)
Definition tinyxml2.h:628
const XMLNode * NextSibling() const
Get the next (right) sibling node of this node.
Definition tinyxml2.h:667
Definition tinyxml2.h:1788
void PushHeader(bool writeBOM, bool writeDeclaration)
Definition tinyxml2.cpp:1835
void PushDeclaration(const char *value)
Definition tinyxml2.cpp:2011
void PushAttribute(const char *name, const char *value)
If streaming, add an attribute to an open element.
Definition tinyxml2.cpp:1866
Definition tinyxml2.h:790
XMLText(const XMLText &)
virtual XMLNode * ShallowClone(XMLDocument *document) const
Definition tinyxml2.cpp:880
virtual bool ShallowEqual(const XMLNode *compare) const
Definition tinyxml2.cpp:891
XMLText & operator=(const XMLText &)
void SetCData(bool isCData)
Declare whether this should be CDATA or standard text.
Definition tinyxml2.h:804
Definition tinyxml2.h:899
char * ParseDeep(char *, StrPair *endTag)
Definition tinyxml2.cpp:1008
virtual bool Accept(XMLVisitor *visitor) const
Definition tinyxml2.cpp:1037
XMLUnknown(const XMLUnknown &)
virtual XMLNode * ShallowClone(XMLDocument *document) const
Definition tinyxml2.cpp:1021
virtual const XMLUnknown * ToUnknown() const
Definition tinyxml2.h:905
XMLUnknown & operator=(const XMLUnknown &)
virtual bool ShallowEqual(const XMLNode *compare) const
Definition tinyxml2.cpp:1031
Definition tinyxml2.h:431
static const char * SkipWhiteSpace(const char *p)
Definition tinyxml2.h:435
static bool ToUnsigned(const char *str, unsigned *value)
Definition tinyxml2.cpp:451
static int IsUTF8Continuation(const char p)
Definition tinyxml2.h:466
static void ConvertUTF32ToUTF8(unsigned long input, char *output, int *length)
Definition tinyxml2.cpp:289
static bool ToFloat(const char *str, float *value)
Definition tinyxml2.cpp:478
static void ToStr(int v, char *buffer, int bufferSize)
Definition tinyxml2.cpp:413
static const char * GetCharacterRef(const char *p, char *value, int *length)
Definition tinyxml2.cpp:335
static bool StringEqual(const char *p, const char *q, int nChar=INT_MAX)
Definition tinyxml2.h:451
static bool ToDouble(const char *str, double *value)
Definition tinyxml2.cpp:486
static bool ToBool(const char *str, bool *value)
Definition tinyxml2.cpp:459
static const char * ReadBOM(const char *p, bool *hasBOM)
Definition tinyxml2.cpp:274
Definition tinyxml2.h:386
virtual bool VisitEnter(const XMLElement &, const XMLAttribute *)
Visit an element.
Definition tinyxml2.h:400
Definition tinyxml2.h:100
@ XML_ERROR_FILE_COULD_NOT_BE_OPENED
Definition tinyxml2.h:931
Generated by 1.9.8