X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwritermode.h;h=21df83fd428db75f360dde92728c15896f8aebbe;hb=9867e5fdf99d7d6c9d83846c11a1cee6a9919be1;hp=e5853ceafc88796f2446a1318af9567d149b34d8;hpb=27630d44298cb67e075c166f4421288cc8ca117e;p=libs%2Fdatafile.git diff --git a/source/writermode.h b/source/writermode.h index e5853ce..21df83f 100644 --- a/source/writermode.h +++ b/source/writermode.h @@ -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 +#include 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