X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.cpp;h=2b50002eed7d26c3411fb4f70c85b8d3a9bf389d;hb=7df5e45c7f414f6a07681dc4ec2abb63b091a309;hp=ed1d71c8b197db64366e5e858b35ff032bc9b8df;hpb=cbd0ddd6ee033e46646bfb85d19232c816ea1eda;p=libs%2Fdatafile.git diff --git a/source/binaryparser.cpp b/source/binaryparser.cpp index ed1d71c..2b50002 100644 --- a/source/binaryparser.cpp +++ b/source/binaryparser.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include #include "binaryparser.h" @@ -74,20 +67,20 @@ Statement BinaryParser::parse_statement() { switch(de.args[j]) { - case 'i': + case IntType::signature: result.args.push_back(parse_int()); break; - case 'f': + case FloatType::signature: result.args.push_back(parse_float()); break; - case 's': + case StringType::signature: result.args.push_back(parse_string()); break; - case 'b': + case BoolType::signature: result.args.push_back(parse_bool()); break; - case 'e': - result.args.push_back(Value(ENUM, parse_enum())); + case SymbolType::signature: + result.args.push_back(Symbol(parse_enum())); break; } }