| tinyxml.h | | tinyxml.h | |
| | | | |
| skipping to change at line 95 | | skipping to change at line 95 | |
| class TiXmlElement; | | class TiXmlElement; | |
| class TiXmlComment; | | class TiXmlComment; | |
| class TiXmlUnknown; | | class TiXmlUnknown; | |
| class TiXmlAttribute; | | class TiXmlAttribute; | |
| class TiXmlText; | | class TiXmlText; | |
| class TiXmlDeclaration; | | class TiXmlDeclaration; | |
| class TiXmlParsingData; | | class TiXmlParsingData; | |
| | | | |
| const int TIXML_MAJOR_VERSION = 2; | | const int TIXML_MAJOR_VERSION = 2; | |
| const int TIXML_MINOR_VERSION = 4; | | const int TIXML_MINOR_VERSION = 4; | |
|
| const int TIXML_PATCH_VERSION = 1; | | const int TIXML_PATCH_VERSION = 2; | |
| | | | |
| /* Internal structure for tracking location of items | | /* Internal structure for tracking location of items | |
| in the XML file. | | in the XML file. | |
| */ | | */ | |
| struct TiXmlCursor | | struct TiXmlCursor | |
| { | | { | |
| TiXmlCursor() { Clear(); } | | TiXmlCursor() { Clear(); } | |
| void Clear() { row = col = -1; } | | void Clear() { row = col = -1; } | |
| | | | |
| int row; // 0 based. | | int row; // 0 based. | |
| | | | |
| skipping to change at line 620 | | skipping to change at line 620 | |
| | | | |
| #ifdef TIXML_USE_STL | | #ifdef TIXML_USE_STL | |
| const TiXmlElement* FirstChildElement( const std::string& _value ) c
onst { return FirstChildElement (_value.c_str ()); }
///< STL std::string form. | | const TiXmlElement* FirstChildElement( const std::string& _value ) c
onst { return FirstChildElement (_value.c_str ()); }
///< STL std::string form. | |
| TiXmlElement* FirstChildElement( const std::string& _value )
{ return FirstChildElement (_value.c_str ());
} ///< STL std::string form. | | TiXmlElement* FirstChildElement( const std::string& _value )
{ return FirstChildElement (_value.c_str ());
} ///< STL std::string form. | |
| #endif | | #endif | |
| | | | |
| /** Query the type (as an enumerated value, above) of this node. | | /** Query the type (as an enumerated value, above) of this node. | |
| The possible types are: DOCUMENT, ELEMENT, COMMENT, | | The possible types are: DOCUMENT, ELEMENT, COMMENT, | |
| UNKNOWN, TEX
T, and DECLARATION. | | UNKNOWN, TEX
T, and DECLARATION. | |
| */ | | */ | |
|
| virtual int Type() const { return type; } | | int Type() const { return type; } | |
| | | | |
| /** Return a pointer to the Document this node lives in. | | /** Return a pointer to the Document this node lives in. | |
| Returns null if not in a document. | | Returns null if not in a document. | |
| */ | | */ | |
| const TiXmlDocument* GetDocument() const; | | const TiXmlDocument* GetDocument() const; | |
| TiXmlDocument* GetDocument(); | | TiXmlDocument* GetDocument(); | |
| | | | |
| /// Returns true if this node has no children. | | /// Returns true if this node has no children. | |
| bool NoChildren() const { re
turn !firstChild; } | | bool NoChildren() const { re
turn !firstChild; } | |
| | | | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|