mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-30 07:32:59 +04:00
Made SaveFile symmetrical with LoadFile
Added overload taking a FILE pointer Return error code (if any) instead of void
This commit is contained in:
+11
-1
@@ -1024,8 +1024,18 @@ public:
|
||||
int LoadFile( FILE* );
|
||||
/**
|
||||
Save the XML file to disk.
|
||||
Returns XML_NO_ERROR (0) on success, or
|
||||
an errorID.
|
||||
*/
|
||||
void SaveFile( const char* filename );
|
||||
int SaveFile( const char* filename );
|
||||
/**
|
||||
Save the XML file to disk. You are responsible
|
||||
for providing and closing the FILE*.
|
||||
|
||||
Returns XML_NO_ERROR (0) on success, or
|
||||
an errorID.
|
||||
*/
|
||||
int SaveFile( FILE* );
|
||||
|
||||
bool ProcessEntities() const { return processEntities; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user