3 This file is part of libmspdatafile
4 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_DATAFILE_WRITER_H_
9 #define MSP_DATAFILE_WRITER_H_
12 #include <msp/io/base.h>
13 #include "binarydict.h"
22 Frontend for writing data.
36 Writes a statement to the output. This function always writes a complete
37 statement, so it's not possible to add substatements later.
39 void write(const Statement &st);
42 Sets binary or text mode. While it is possible to enter and exit binary
43 mode multiple times, doing so produces sub-optimal output.
45 @param b true for binary mode, false for text
47 void set_binary(bool b);
50 } // namespace DataFile