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_
13 #include "binarydict.h"
22 Frontend for writing data.
32 Writer(std::ostream &o);
35 Writes a statement to the output. This function always writes a complete
36 statement, so it's not possible to add substatements later.
38 void write(const Statement &st);
41 Sets binary or text mode. While it is possible to enter and exit binary
42 mode multiple times, doing so produces sub-optimal output.
44 @param b true for binary mode, false for text
46 void set_binary(bool b);
49 } // namespace DataFile