]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/writer.h
Use custom encoding for floats in binary format
[libs/datafile.git] / source / writer.h
index e62e8bce2851313d6a9cb10e4df86531920dbd4e..c8d75e32dcd643bb09e3ec281331800691c99e02 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_DATAFILE_WRITER_H_
 #define MSP_DATAFILE_WRITER_H_
 
@@ -30,6 +23,7 @@ private:
 
 public:
        Writer(IO::Base &o);
+       ~Writer();
 
        /**
        Writes a statement to the output.  This function always writes a complete
@@ -44,6 +38,11 @@ public:
        @param  b  true for binary mode, false for text
        */
        void set_binary(bool b);
+
+       /** 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. */
+       void set_float_precision(unsigned);
 };
 
 } // namespace DataFile