]> git.tdb.fi Git - libs/datafile.git/blob - source/binarydict.h
Add binary data format
[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 struct DictEntry
17 {
18         std::string keyword;
19         std::string args;
20
21         DictEntry() { }
22         DictEntry(const std::string &k, const std::string &a): keyword(k), args(a) { }
23
24         bool operator<(const DictEntry &o) const
25         { return keyword<o.keyword || (keyword==o.keyword && args<o.args); }
26 };
27
28 } // namespace DataFile
29 } // namespace Msp
30
31 #endif