diff options
Diffstat (limited to 'Parser.h')
-rw-r--r-- | Parser.h | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -2,19 +2,10 @@ #include "FileReader.h" #include "MuseumDeserializer.h" -#include "Parser.h" - -class ParserFactory { - typedef std::vector<Parser*> ParserCollection; +class Parser { public: - static void parse(FileReader & f, MuseumDeserializer & d); - static void register_strategy(Parser * p); - -private: - static ParserCollection & get_collection() { - static ParserCollection c = {}; - return c; - } + virtual void parse(FileReader & f, MuseumDeserializer & d) = 0; + virtual unsigned int heuristic(FileReader & f) = 0; }; |