X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fwriter.h;h=241ea9a9d460a598c46a5a5a7e32b3329b8a060c;hb=82e19fd15e24f913fba0cf8a4fb0352f282c3389;hp=df308266d976810217be152efec93d8f2a75b77a;hpb=8e3fad222e174b7c659fd3d994d54314657ed989;p=libs%2Fdatafile.git diff --git a/source/writer.h b/source/writer.h index df30826..241ea9a 100644 --- a/source/writer.h +++ b/source/writer.h @@ -2,19 +2,20 @@ #define MSP_DATAFILE_WRITER_H_ #include +#include #include #include "output.h" namespace Msp { namespace DataFile { -class Statement; +struct Statement; class WriterMode; /** Frontend for writing data. */ -class Writer +class Writer: private NonCopyable { private: Output out; @@ -39,6 +40,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. */