X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.h;h=26fa380e4e290b67c4172449a009cc47991b5efc;hb=4371289ed39d8135d407bc7bbbfbedea0cfd6dde;hp=560703c66ddb337791a98b7e72d8dc1c81262169;hpb=27630d44298cb67e075c166f4421288cc8ca117e;p=libs%2Fdatafile.git diff --git a/source/binaryparser.h b/source/binaryparser.h index 560703c..26fa380 100644 --- a/source/binaryparser.h +++ b/source/binaryparser.h @@ -15,14 +15,17 @@ Distributed under the LGPL namespace Msp { namespace DataFile { +/** +Parses data in binary format. +*/ class BinaryParser: public ParserMode { private: typedef std::map Dictionary; - typedef std::map EnumMap; + typedef std::map StringMap; Dictionary dict; - EnumMap enums; + StringMap strings; bool first; public: @@ -35,6 +38,7 @@ private: std::string parse_string(); bool parse_bool(); std::string parse_enum(); + const std::string &lookup_string(unsigned) const; }; } // namespace DataFile