]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/writer.cpp
Remove the loaded flag from PackSource files
[libs/datafile.git] / source / writer.cpp
index bcbccc240300a065ce01454409cb80049da32b1d..ff4f2248bee7e7d3035c3a4174e44a52251d2450 100644 (file)
@@ -1,10 +1,4 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <msp/io/zlibcompressed.h>
 #include "binarywriter.h"
 #include "statement.h"
 #include "textwriter.h"
@@ -53,5 +47,19 @@ void Writer::set_binary(bool b)
                mode = new TextWriter(out);
 }
 
+void Writer::set_compressed()
+{
+       Statement st;
+       st.keyword = "__z";
+       mode->write(st);
+
+       out.set_compressed();
+}
+
+void Writer::set_float_precision(unsigned fp)
+{
+       mode->set_float_precision(fp);
+}
+
 } // namespace DataFile
 } // namespace Msp