1 #ifndef MSP_DATAFILE_BINARYPARSER_H_
2 #define MSP_DATAFILE_BINARYPARSER_H_
5 #include "binarydict.h"
6 #include "parsermode.h"
13 Parses data in binary format.
15 class BinaryParser: public ParserMode
18 typedef std::map<int, DictEntry> Dictionary;
19 typedef std::map<unsigned, std::string> StringMap;
24 unsigned float_precision;
27 BinaryParser(Input &i, const std::string &s);
29 virtual Statement parse(bool);
31 Statement parse_statement(bool);
32 IntType::Store parse_int();
33 FloatType::Store parse_float();
34 StringType::Store parse_string();
35 BoolType::Store parse_bool();
36 SymbolType::Store parse_symbol();
39 } // namespace DataFile