1 #ifndef MSP_DATAFILE_BINARYPARSER_H_
2 #define MSP_DATAFILE_BINARYPARSER_H_
5 #include "binarydict.h"
6 #include "parsermode.h"
12 Parses data in binary format.
14 class BinaryParser: public ParserMode
17 typedef std::map<unsigned, DictEntry> Dictionary;
18 typedef std::map<unsigned, std::string> StringMap;
25 BinaryParser(Input &i, const std::string &s);
27 virtual Statement parse();
29 Statement parse_statement();
30 long long parse_int();
32 std::string parse_string();
34 std::string parse_enum();
37 } // namespace DataFile