]> git.tdb.fi Git - libs/datafile.git/blob - source/writer.h
Add binary data format
[libs/datafile.git] / source / writer.h
1 /* $Id$
2
3 This file is part of libmspdatafile
4 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_DATAFILE_WRITER_H_
9 #define MSP_DATAFILE_WRITER_H_
10
11 #include <map>
12 #include <ostream>
13 #include "binarydict.h"
14
15 namespace Msp {
16 namespace DataFile {
17
18 class Statement;
19 class WriterMode;
20
21 class Writer
22 {
23 private:
24         std::ostream &out;
25         WriterMode *mode;
26         bool binary;
27
28 public:
29         Writer(std::ostream &);
30         void write(const Statement &);
31         void set_binary(bool);
32 };
33
34 } // namespace DataFile
35 } // namespace Msp
36
37 #endif