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> StringMap;
32 BinaryParser(Input &i, const std::string &s);
34 virtual Statement parse();
36 Statement parse_statement();
37 long long parse_int();
39 std::string parse_string();
41 std::string parse_enum();
42 const std::string &lookup_string(unsigned) const;
45 } // namespace DataFile