Changeset 8351 for code/trunk/src/external/tinyxml/ticpp.h
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/tinyxml/ticpp.h
r5781 r8351 225 225 return ( GetBasePointer() == rhs.GetBasePointer() ); 226 226 } 227 227 228 228 /** 229 229 Compare internal TiXml pointers to determine is both are wrappers around the same node … … 233 233 return ( GetBasePointer() != rhs.GetBasePointer() ); 234 234 } 235 235 236 236 /** 237 237 Builds detailed error string using TiXmlDocument::Error() and others … … 250 250 { 251 251 full_message << "\nDescription: " << doc->ErrorDesc() 252 << "\nFile: " << (strlen( doc->Value() ) > 0 ? doc->Value() : "<unnamed-file>") 253 << "\nLine: " << doc->ErrorRow() 252 << "\nFile: " << (strlen( doc->Value() ) > 0 ? doc->Value() : "<unnamed-file>") 253 << "\nLine: " << doc->ErrorRow() 254 254 << "\nColumn: " << doc->ErrorCol(); 255 255 } … … 287 287 TICPPTHROW( "Internal TiXml Pointer is NULL" ); 288 288 } 289 } 289 } 290 290 291 291 /** … … 617 617 @see TiXmlNode::InsertEndChild 618 618 */ 619 Node* InsertEndChild( Node& addThis );619 Node* InsertEndChild( const Node& addThis ); 620 620 621 621 /** … … 642 642 @see TiXmlNode::InsertBeforeChild 643 643 */ 644 Node* InsertBeforeChild( Node* beforeThis, Node& addThis );644 Node* InsertBeforeChild( Node* beforeThis, const Node& addThis ); 645 645 646 646 /** … … 655 655 @see TiXmlNode::InsertAfterChild 656 656 */ 657 Node* InsertAfterChild( Node* afterThis, Node& addThis );657 Node* InsertAfterChild( Node* afterThis, const Node& addThis ); 658 658 659 659 /** … … 667 667 @see TiXmlNode::ReplaceChild 668 668 */ 669 Node* ReplaceChild( Node* replaceThis, Node& withThis );669 Node* ReplaceChild( Node* replaceThis, const Node& withThis ); 670 670 671 671 /** … … 1163 1163 /** Sets internal pointer to the Previous Sibling, or Iterator::END, if there are no prior siblings */ 1164 1164 Iterator operator--(int) 1165 { 1165 { 1166 1166 Iterator tmp(*this); 1167 1167 --(*this); … … 1230 1230 T* m_tiXmlPointer; /**< Internal pointer to the TiXml Class which is being wrapped */ 1231 1231 1232 1232 public: 1233 1233 /** 1234 1234 @internal … … 1242 1242 return m_tiXmlPointer; 1243 1243 } 1244 1244 protected: 1245 1245 1246 1246 /** … … 1400 1400 1401 1401 /** 1402 Constructor. 1403 Create a document with a name. The name of the document is also the filename of the xml. 1404 1405 @param documentName Name to set in the Document. 1406 */ 1402 * Constructor. 1403 * Create a document with a name. The name of the document is also the filename of the xml. 1404 * @param documentName Name to set in the Document. 1405 * @note LoadFile() needs to be called to actually load the data from the file specified by documentName 1406 * SaveFile() needs to be called to save data to file specified by documentName. 1407 */ 1407 1408 Document( const std::string& documentName ); 1408 1409 … … 1749 1750 if ( throwIfNotFound ) 1750 1751 { 1751 TICPPTHROW( "Attribute does not exist" ); 1752 const std::string error( std::string( "Attribute '" ) + name + std::string( "' does not exist" ) ); 1753 TICPPTHROW( error ); 1752 1754 } 1753 1755 } … … 1781 1783 if ( throwIfNotFound ) 1782 1784 { 1783 TICPPTHROW( "Attribute does not exist" ); 1785 const std::string error( std::string( "Attribute '" ) + name + std::string( "' does not exist" ) ); 1786 TICPPTHROW( error ); 1784 1787 } 1785 1788 else
Note: See TracChangeset
for help on using the changeset viewer.