]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/textwriter.h
Add binary data format
[libs/datafile.git] / source / textwriter.h
diff --git a/source/textwriter.h b/source/textwriter.h
new file mode 100644 (file)
index 0000000..5c83b7a
--- /dev/null
@@ -0,0 +1,28 @@
+/* $Id$
+
+This file is part of libmspdatafile
+Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_DATAFILE_TEXTWRITER_H_
+#define MSP_DATAFILE_TEXTWRITER_H_
+
+#include "writermode.h"
+
+namespace Msp {
+namespace DataFile {
+
+class TextWriter: public WriterMode
+{
+public:
+       TextWriter(std::ostream &o);
+       void write(const Statement &st);
+private:
+       void write_(const Statement &st, unsigned);
+};
+
+} // namespace DataFile
+} // namespace Msp
+
+#endif