From bb8fd64ea27254d1652cbf6700ae042959980909 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 15 Jul 2006 01:01:07 +0000 Subject: Added stuff that I thought was already there... --- src/xmlfilewriter.cpp | 6 ++++++ src/xmlfilewriter.h | 1 + 2 files changed, 7 insertions(+) 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 fprintf( fh, "\n"); } +XmlFileWriter::XmlFileWriter( FILE *fh, const char *sIndent, XmlNode *pRoot ) : + XmlWriter( sIndent, pRoot ), + fh( fh ) +{ +} + XmlFileWriter::~XmlFileWriter() { 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: *@param sIndent The indent text to use, if any. */ XmlFileWriter( const char *sFileName, const char *sIndent=NULL, XmlNode *pRoot=NULL ); + XmlFileWriter( FILE *fh, const char *sIndent=NULL, XmlNode *pRoot=NULL ); /** * Destroy the writer. -- cgit v1.2.3