X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.h;h=dfb0de995c7092dd60c9ebc19d6d636b408de84b;hb=4edbe0eb078c4e480682862ccb68ebc8cb284045;hp=6a46639cbbca7667873f5c5a68d30f8151e62dfa;hpb=29fafaa2c570b0cf92f41eeb534cfb65a841a892;p=libs%2Fdatafile.git diff --git a/source/binaryparser.h b/source/binaryparser.h index 6a46639..dfb0de9 100644 --- a/source/binaryparser.h +++ b/source/binaryparser.h @@ -14,19 +14,24 @@ Parses data in binary format. class BinaryParser: public ParserMode { private: - typedef std::map Dictionary; + typedef std::map Dictionary; typedef std::map StringMap; Dictionary dict; StringMap strings; - bool first; unsigned float_precision; + StatementInfo *cur_info; + std::vector sub_remaining; public: BinaryParser(Input &i, const std::string &s); virtual Statement parse(); virtual void process_control_statement(const Statement &); + + virtual const StatementKey *peek(unsigned); + virtual bool parse_and_load(unsigned, Loader &, const LoaderAction &); + private: IntType::Store parse_int(); FloatType::Store parse_float();