3 This file is part of libmspdatafile
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_DATAFILE_BINARYPARSER_H_
9 #define MSP_DATAFILE_BINARYPARSER_H_
12 #include "binarydict.h"
13 #include "parsermode.h"
19 Parses data in binary format.
21 class BinaryParser: public ParserMode
24 typedef std::map<unsigned, DictEntry> Dictionary;
25 typedef std::map<unsigned, std::string> EnumMap;
32 BinaryParser(Input &i, const std::string &s);
35 Statement parse_statement();
36 long long parse_int();
38 std::string parse_string();
40 std::string parse_enum();
43 } // namespace DataFile