]> git.tdb.fi Git - libs/datafile.git/blob - source/binarydict.h
Restructure the tool and make it able to handle multiple input files
[libs/datafile.git] / source / binarydict.h
1 #ifndef MSP_DATAFILE_BINARYDICT_H_
2 #define MSP_DATAFILE_BINARYDICT_H_
3
4 #include <string>
5
6 namespace Msp {
7 namespace DataFile {
8
9 /**
10 Stores statement information for binary files.
11 */
12 struct DictEntry
13 {
14         std::string keyword;
15         std::string args;
16
17         DictEntry() { }
18         DictEntry(const std::string &k, const std::string &a): keyword(k), args(a) { }
19
20         bool operator<(const DictEntry &o) const
21         { return keyword<o.keyword || (keyword==o.keyword && args<o.args); }
22 };
23
24 } // namespace DataFile
25 } // namespace Msp
26
27 #endif