]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/writer.cpp
Use custom encoding for floats in binary format
[libs/datafile.git] / source / writer.cpp
index bcbccc240300a065ce01454409cb80049da32b1d..60914090f742acaa97b90f1f1f9c58fd03756523 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "binarywriter.h"
 #include "statement.h"
 #include "textwriter.h"
@@ -53,5 +46,10 @@ void Writer::set_binary(bool b)
                mode = new TextWriter(out);
 }
 
+void Writer::set_float_precision(unsigned fp)
+{
+       mode->set_float_precision(fp);
+}
+
 } // namespace DataFile
 } // namespace Msp