1 #include <msp/io/zlibcompressed.h>
2 #include "binarywriter.h"
4 #include "textwriter.h"
12 Writer::Writer(IO::Base &o):
14 mode(new TextWriter(out)),
23 void Writer::write(const Statement &st)
28 void Writer::set_binary(bool b)
39 st.keyword = "__text";
45 mode = new BinaryWriter(out);
47 mode = new TextWriter(out);
50 void Writer::set_compressed()
59 void Writer::set_float_precision(unsigned fp)
61 mode->set_float_precision(fp);
64 } // namespace DataFile