aboutsummaryrefslogtreecommitdiff
path: root/Parser.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:48:14 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:48:14 +0200
commitd8289105193707daede1a5b59137f18e20f20aeb (patch)
tree939908b9c4c6f7aaef8aa61ee2e04be3e85610b6 /Parser.h
parent76e61d68bbf568ec0d7fc4632e52d4de5496b003 (diff)
(2/2) rename
Diffstat (limited to 'Parser.h')
-rw-r--r--Parser.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/Parser.h b/Parser.h
index 5430366..01efb3c 100644
--- a/Parser.h
+++ b/Parser.h
@@ -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;
};