diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-07-15 01:01:07 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-15 01:01:07 +0000 |
commit | bb8fd64ea27254d1652cbf6700ae042959980909 (patch) | |
tree | 52bcb4bbb1eb3e2fb24a926c58f701685a9d07af /src | |
parent | 5b650d2d0c96545c5a276a1b819d0f5baebf8204 (diff) | |
download | libbu++-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 'src')
-rw-r--r-- | src/xmlfilewriter.cpp | 6 | ||||
-rw-r--r-- | src/xmlfilewriter.h | 1 |
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 | ||
13 | XmlFileWriter::XmlFileWriter( FILE *fh, const char *sIndent, XmlNode *pRoot ) : | ||
14 | XmlWriter( sIndent, pRoot ), | ||
15 | fh( fh ) | ||
16 | { | ||
17 | } | ||
18 | |||
13 | XmlFileWriter::~XmlFileWriter() | 19 | XmlFileWriter::~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. |