X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.h;h=2cdfbbeaba296e919ff68abb92015eb2647fbf38;hb=8d6360cbcd8fe92d97dcba5e68e3adb6f2c0c3bc;hp=560703c66ddb337791a98b7e72d8dc1c81262169;hpb=27630d44298cb67e075c166f4421288cc8ca117e;p=libs%2Fdatafile.git diff --git a/source/binaryparser.h b/source/binaryparser.h index 560703c..2cdfbbe 100644 --- a/source/binaryparser.h +++ b/source/binaryparser.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_DATAFILE_BINARYPARSER_H_ #define MSP_DATAFILE_BINARYPARSER_H_ @@ -15,19 +8,23 @@ 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: BinaryParser(Input &i, const std::string &s); - Statement parse(); + + virtual Statement parse(); private: Statement parse_statement(); long long parse_int();