]> git.tdb.fi Git - libs/datafile.git/blob - source/token.h
Add missing includes
[libs/datafile.git] / source / token.h
1 #ifndef MSP_DATAFILE_TOKEN_H_
2 #define MSP_DATAFILE_TOKEN_H_
3
4 #include <string>
5
6 namespace Msp {
7 namespace DataFile {
8
9 struct Token
10 {
11         enum Type
12         {
13                 INTEGER,
14                 FLOAT,
15                 STRING,
16                 IDENTIFIER,
17                 SPECIAL
18         };
19
20         Type type;
21         std::string str;
22
23         Token(): type(SPECIAL) { }
24         Token(Type t, const std::string &s): type(t), str(s) { }
25 };
26
27 } // namespace DataFile
28 } // namespace Msp
29
30 #endif