X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.h;h=e6735f2435a71c447450ecd58aacbf46342859be;hb=6653c7d83dbe1fe81a541a125be8bb808b234eb7;hp=f9b8e542865fac10550c8a5c5105d40819efcd69;hpb=5fd2c13c3036ea6a767802fdc9a2ab809ef8ec17;p=libs%2Fdatafile.git diff --git a/source/binaryparser.h b/source/binaryparser.h index f9b8e54..e6735f2 100644 --- a/source/binaryparser.h +++ b/source/binaryparser.h @@ -15,19 +15,20 @@ 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; public: BinaryParser(Input &i, const std::string &s); - virtual Statement parse(); + virtual Statement parse(bool); private: - Statement parse_statement(); + Statement parse_statement(bool); IntType::Store parse_int(); FloatType::Store parse_float(); StringType::Store parse_string();