X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftextwriter.h;h=fef437930bb0271ff097d78079a421bef7f5ec4f;hb=HEAD;hp=a0ed1b79888e882a86b083d0a037c6126887ba78;hpb=19179a622c1de88de5ed7047643eec79f285bf2a;p=libs%2Fdatafile.git diff --git a/source/textwriter.h b/source/textwriter.h index a0ed1b7..641fc2e 100644 --- a/source/textwriter.h +++ b/source/textwriter.h @@ -1,6 +1,7 @@ #ifndef MSP_DATAFILE_TEXTWRITER_H_ #define MSP_DATAFILE_TEXTWRITER_H_ +#include #include "writermode.h" namespace Msp { @@ -9,13 +10,13 @@ namespace DataFile { class TextWriter: public WriterMode { private: - std::string float_format; + Fmt float_format; public: - TextWriter(IO::Base &o); + TextWriter(Output &o); - virtual void set_float_precision(unsigned); - virtual void write(const Statement &st); + void set_float_precision(unsigned) override; + void write(const Statement &st) override; private: void write_(const Statement &st, unsigned); };