make XNode::GetXML() and XAttr::GetXML write out to a file directly, rather than concatinating on a std::ostringstream, which was taking a long time.

This commit is contained in:
Thad Ward
2004-05-21 22:57:54 +00:00
parent 8a9cfa8bdf
commit 540c2fe79d
2 changed files with 20 additions and 27 deletions
+2 -2
View File
@@ -110,7 +110,7 @@ struct XAttr
XNode* parent;
CString GetXML( LPDISP_OPT opt = &optDefault );
void GetXML( RageFile &f, LPDISP_OPT opt = &optDefault );
};
typedef XAttr* LPXAttr;
@@ -134,7 +134,7 @@ struct XNode
// Load/Save XML
char* Load( const char* pszXml, LPPARSEINFO pi = &piDefault );
char* LoadAttributes( const char* pszAttrs, LPPARSEINFO pi = &piDefault );
CString GetXML( LPDISP_OPT opt = &optDefault );
void GetXML( RageFile &f, LPDISP_OPT opt = &optDefault );
bool LoadFromFile( CString sFile, LPPARSEINFO pi = &piDefault );
bool SaveToFile( CString sFile, LPDISP_OPT opt = &optDefault );