]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/binaryparser.h
Drop copyright and license notices from source files
[libs/datafile.git] / source / binaryparser.h
index f1d51b236edc8b192c3644574905775c7cf9b9da..f6736faa0a0fb701cbfd4867245993e8855d21a5 100644 (file)
@@ -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_
 
@@ -22,15 +15,16 @@ class BinaryParser: public ParserMode
 {
 private:
        typedef std::map<unsigned, DictEntry> Dictionary;
-       typedef std::map<unsigned, std::string> EnumMap;
+       typedef std::map<unsigned, std::string> 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();
@@ -38,6 +32,7 @@ private:
        std::string parse_string();
        bool parse_bool();
        std::string parse_enum();
+       const std::string &lookup_string(unsigned) const;
 };
 
 } // namespace DataFile