]> git.tdb.fi Git - libs/datafile.git/blob - source/parsermode.h
Add binary data format
[libs/datafile.git] / source / parsermode.h
1 /* $Id$
2
3 This file is part of libmspdatafile
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_DATAFILE_PARSERMODE_H_
9 #define MSP_DATAFILE_PARSERMODE_H_
10
11 #include "statement.h"
12
13 namespace Msp {
14 namespace DataFile {
15
16 class Input;
17
18 class ParserMode
19 {
20 protected:
21         Input ∈
22         std::string src;
23
24         ParserMode(Input &i, const std::string &s): in(i), src(s) { }
25 public:
26         virtual ~ParserMode() { }
27
28         virtual Statement parse() =0;
29 };
30
31 } // namespace DataFile
32 } // namespace Msp
33
34 #endif