1 #ifndef MSP_DATAFILE_WRITER_H_
2 #define MSP_DATAFILE_WRITER_H_
5 #include <msp/io/base.h>
6 #include "binarydict.h"
15 Frontend for writing data.
29 Writes a statement to the output. This function always writes a complete
30 statement, so it's not possible to add substatements later.
32 void write(const Statement &st);
35 Sets binary or text mode. While it is possible to enter and exit binary
36 mode multiple times, doing so produces sub-optimal output.
38 @param b true for binary mode, false for text
40 void set_binary(bool b);
43 } // namespace DataFile