]> git.tdb.fi Git - libs/datafile.git/blob - source/binarydict.h
Add Readme.txt and some other documentation
[libs/datafile.git] / source / binarydict.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
8 #ifndef MSP_DATAFILE_BINARYDICT_H_
9 #define MSP_DATAFILE_BINARYDICT_H_
10
11 #include <string>
12
13 namespace Msp {
14 namespace DataFile {
15
16 /**
17 Stores statement information for binary files.
18 */
19 struct DictEntry
20 {
21         std::string keyword;
22         std::string args;
23
24         DictEntry() { }
25         DictEntry(const std::string &k, const std::string &a): keyword(k), args(a) { }
26
27         bool operator<(const DictEntry &o) const
28         { return keyword<o.keyword || (keyword==o.keyword && args<o.args); }
29 };
30
31 } // namespace DataFile
32 } // namespace Msp
33
34 #endif