]> git.tdb.fi Git - libs/datafile.git/blob - source/statement.h
Add binary data format
[libs/datafile.git] / source / statement.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 #ifndef MSP_DATAFILE_STATEMENT_H_
8 #define MSP_DATAFILE_STATEMENT_H_
9
10 #include <list>
11 #include "value.h"
12
13 namespace Msp {
14 namespace DataFile {
15
16 class Statement
17 {
18 public:
19         std::string keyword;
20         ValueArray  args;
21         bool        valid;
22         std::string source;
23         unsigned    line;
24         std::list<Statement> sub;
25
26         Statement(): valid(false), line(0) { }
27         std::string get_location() const;
28 };
29
30 } // namespace DataFile
31 } // namespace Msp
32
33 #endif