X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwriter.h;h=18fb3141b2c8c83edb526da13ef76c981b0c4c1e;hb=b39ce68f12c30eedb272b65fe78baec5864d89ca;hp=c8d75e32dcd643bb09e3ec281331800691c99e02;hpb=19179a622c1de88de5ed7047643eec79f285bf2a;p=libs%2Fdatafile.git diff --git a/source/writer.h b/source/writer.h index c8d75e3..18fb314 100644 --- a/source/writer.h +++ b/source/writer.h @@ -3,7 +3,7 @@ #include #include -#include "binarydict.h" +#include "output.h" namespace Msp { namespace DataFile { @@ -17,7 +17,7 @@ Frontend for writing data. class Writer { private: - IO::Base &out; + Output out; WriterMode *mode; bool binary; @@ -39,6 +39,10 @@ public: */ void set_binary(bool b); + /** Enables output compression. Once enabled, it won't be possible to + disable compression. */ + void set_compressed(); + /** Sets the precision of floating point numbers in bits. Depending on the mode not all values may be valid, but any value between 16 and 64 that is divisible by 8 is guaranteed to work. */