X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwriter.h;h=159bf9552f2ca68c80f740c4f88b222b7a736dd1;hb=e0af585ed57bdb5b1ea4f4a415fda13b5d99d2dc;hp=698bade8f650cf45198ee92ac147f18a10540b02;hpb=505042fcda16151f5ace243c243d34af3efcf677;p=libs%2Fdatafile.git diff --git a/source/writer.h b/source/writer.h index 698bade..159bf95 100644 --- a/source/writer.h +++ b/source/writer.h @@ -1,15 +1,8 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_DATAFILE_WRITER_H_ #define MSP_DATAFILE_WRITER_H_ #include -#include +#include #include "binarydict.h" namespace Msp { @@ -24,12 +17,13 @@ Frontend for writing data. class Writer { private: - std::ostream &out; + IO::Base &out; WriterMode *mode; bool binary; public: - Writer(std::ostream &o); + Writer(IO::Base &o); + ~Writer(); /** Writes a statement to the output. This function always writes a complete