]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/writermode.h
Use custom encoding for floats in binary format
[libs/datafile.git] / source / writermode.h
index e5853ceafc88796f2446a1318af9567d149b34d8..21df83fd428db75f360dde92728c15896f8aebbe 100644 (file)
@@ -1,14 +1,7 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_DATAFILE_WRITERMODE_H_
 #define MSP_DATAFILE_WRITERMODE_H_
 
-#include <ostream>
+#include <msp/io/base.h>
 
 namespace Msp {
 namespace DataFile {
@@ -18,13 +11,14 @@ class Statement;
 class WriterMode
 {
 protected:
-       std::ostream &out;
+       IO::Base &out;
 
-       WriterMode(std::ostream &o): out(o) { }
+       WriterMode(IO::Base &o): out(o) { }
 public:
        virtual ~WriterMode() { }
 
-       virtual void write(const Statement &st) =0;
+       virtual void set_float_precision(unsigned) = 0;
+       virtual void write(const Statement &st) = 0;
 };
 
 } // namespace DataFile