]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/writer.h
Use libmspio instead of C++ iostreams
[libs/datafile.git] / source / writer.h
index 698bade8f650cf45198ee92ac147f18a10540b02..e62e8bce2851313d6a9cb10e4df86531920dbd4e 100644 (file)
@@ -9,7 +9,7 @@ Distributed under the LGPL
 #define MSP_DATAFILE_WRITER_H_
 
 #include <map>
-#include <ostream>
+#include <msp/io/base.h>
 #include "binarydict.h"
 
 namespace Msp {
@@ -24,12 +24,12 @@ 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);
 
        /**
        Writes a statement to the output.  This function always writes a complete