]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parsermode.h
Add binary data format
[libs/datafile.git] / source / parsermode.h
diff --git a/source/parsermode.h b/source/parsermode.h
new file mode 100644 (file)
index 0000000..824525d
--- /dev/null
@@ -0,0 +1,34 @@
+/* $Id$
+
+This file is part of libmspdatafile
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_DATAFILE_PARSERMODE_H_
+#define MSP_DATAFILE_PARSERMODE_H_
+
+#include "statement.h"
+
+namespace Msp {
+namespace DataFile {
+
+class Input;
+
+class ParserMode
+{
+protected:
+       Input ∈
+       std::string src;
+
+       ParserMode(Input &i, const std::string &s): in(i), src(s) { }
+public:
+       virtual ~ParserMode() { }
+
+       virtual Statement parse() =0;
+};
+
+} // namespace DataFile
+} // namespace Msp
+
+#endif