]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/writer.h
Add binary data format
[libs/datafile.git] / source / writer.h
diff --git a/source/writer.h b/source/writer.h
new file mode 100644 (file)
index 0000000..756e19a
--- /dev/null
@@ -0,0 +1,37 @@
+/* $Id$
+
+This file is part of libmspdatafile
+Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_DATAFILE_WRITER_H_
+#define MSP_DATAFILE_WRITER_H_
+
+#include <map>
+#include <ostream>
+#include "binarydict.h"
+
+namespace Msp {
+namespace DataFile {
+
+class Statement;
+class WriterMode;
+
+class Writer
+{
+private:
+       std::ostream &out;
+       WriterMode *mode;
+       bool binary;
+
+public:
+       Writer(std::ostream &);
+       void write(const Statement &);
+       void set_binary(bool);
+};
+
+} // namespace DataFile
+} // namespace Msp
+
+#endif