aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-07-15 01:01:07 +0000
committerMike Buland <eichlan@xagasoft.com>2006-07-15 01:01:07 +0000
commitbb8fd64ea27254d1652cbf6700ae042959980909 (patch)
tree52bcb4bbb1eb3e2fb24a926c58f701685a9d07af /src
parent5b650d2d0c96545c5a276a1b819d0f5baebf8204 (diff)
downloadlibbu++-bb8fd64ea27254d1652cbf6700ae042959980909.tar.gz
libbu++-bb8fd64ea27254d1652cbf6700ae042959980909.tar.bz2
libbu++-bb8fd64ea27254d1652cbf6700ae042959980909.tar.xz
libbu++-bb8fd64ea27254d1652cbf6700ae042959980909.zip
Added stuff that I thought was already there...
Diffstat (limited to '')
-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.