1 #ifndef MSP_DATAFILE_BINARYPARSER_H_
2 #define MSP_DATAFILE_BINARYPARSER_H_
5 #include "parsermode.h"
12 Parses data in binary format.
14 class BinaryParser: public ParserMode
17 typedef std::map<int, StatementKey> Dictionary;
18 typedef std::map<unsigned, std::string> StringMap;
23 unsigned float_precision;
26 BinaryParser(Input &i, const std::string &s);
28 virtual Statement parse(bool);
30 Statement parse_statement(bool);
31 IntType::Store parse_int();
32 FloatType::Store parse_float();
33 StringType::Store parse_string();
34 BoolType::Store parse_bool();
35 SymbolType::Store parse_symbol();
38 } // namespace DataFile