]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/binaryparser.h
Use a common StatementKey structure for Loader and BinaryParser/Writer
[libs/datafile.git] / source / binaryparser.h
index f9b8e542865fac10550c8a5c5105d40819efcd69..d275290cbece483a6b1ec1b2b6e109da9f5806db 100644 (file)
@@ -2,7 +2,6 @@
 #define MSP_DATAFILE_BINARYPARSER_H_
 
 #include <map>
-#include "binarydict.h"
 #include "parsermode.h"
 #include "type.h"
 
@@ -15,19 +14,20 @@ Parses data in binary format.
 class BinaryParser: public ParserMode
 {
 private:
-       typedef std::map<unsigned, DictEntry> Dictionary;
+       typedef std::map<int, StatementKey> Dictionary;
        typedef std::map<unsigned, std::string> 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();