aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xmlfilewriter.cpp6
-rw-r--r--src/xmlfilewriter.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/xmlfilewriter.cpp b/src/xmlfilewriter.cpp
index b62fb11..19120a0 100644
--- a/src/xmlfilewriter.cpp
+++ b/src/xmlfilewriter.cpp
@@ -10,6 +10,12 @@ XmlFileWriter::XmlFileWriter( const char *sFileName, const char *sIndent, XmlNod
10 fprintf( fh, "<?xml version=\"1.0\"?>\n"); 10 fprintf( fh, "<?xml version=\"1.0\"?>\n");
11} 11}
12 12
13XmlFileWriter::XmlFileWriter( FILE *fh, const char *sIndent, XmlNode *pRoot ) :
14 XmlWriter( sIndent, pRoot ),
15 fh( fh )
16{
17}
18
13XmlFileWriter::~XmlFileWriter() 19XmlFileWriter::~XmlFileWriter()
14{ 20{
15 fclose( fh ); 21 fclose( fh );
diff --git a/src/xmlfilewriter.h b/src/xmlfilewriter.h
index 231bb0d..e328f96 100644
--- a/src/xmlfilewriter.h
+++ b/src/xmlfilewriter.h
@@ -29,6 +29,7 @@ public:
29 *@param sIndent The indent text to use, if any. 29 *@param sIndent The indent text to use, if any.
30 */ 30 */
31 XmlFileWriter( const char *sFileName, const char *sIndent=NULL, XmlNode *pRoot=NULL ); 31 XmlFileWriter( const char *sFileName, const char *sIndent=NULL, XmlNode *pRoot=NULL );
32 XmlFileWriter( FILE *fh, const char *sIndent=NULL, XmlNode *pRoot=NULL );
32 33
33 /** 34 /**
34 * Destroy the writer. 35 * Destroy the writer.