X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftextwriter.h;h=fef437930bb0271ff097d78079a421bef7f5ec4f;hb=HEAD;hp=de6de457af516e36757ae14f16de3085e79d06a2;hpb=6dd94a7fe90c6467024685fbac769067ddb74688;p=libs%2Fdatafile.git diff --git a/source/textwriter.h b/source/textwriter.h index de6de45..641fc2e 100644 --- a/source/textwriter.h +++ b/source/textwriter.h @@ -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 #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); + + void set_float_precision(unsigned) override; + void write(const Statement &st) override; private: void write_(const Statement &st, unsigned); };