]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/textwriter.h
Add missing includes
[libs/datafile.git] / source / textwriter.h
index de6de457af516e36757ae14f16de3085e79d06a2..74a67671b5e68ec732f5fd0ae24e86b9be9928e0 100644 (file)
@@ -1,13 +1,7 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_DATAFILE_TEXTWRITER_H_
 #define MSP_DATAFILE_TEXTWRITER_H_
 
+#include <msp/strings/fmt.h>
 #include "writermode.h"
 
 namespace Msp {
@@ -15,9 +9,14 @@ namespace DataFile {
 
 class TextWriter: public WriterMode
 {
+private:
+       Fmt float_format;
+
 public:
-       TextWriter(IO::Base &o);
-       void write(const Statement &st);
+       TextWriter(Output &o);
+
+       virtual void set_float_precision(unsigned);
+       virtual void write(const Statement &st);
 private:
        void write_(const Statement &st, unsigned);
 };