diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:48:14 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:48:14 +0200 |
commit | d8289105193707daede1a5b59137f18e20f20aeb (patch) | |
tree | 939908b9c4c6f7aaef8aa61ee2e04be3e85610b6 /ParserFactory.h | |
parent | 76e61d68bbf568ec0d7fc4632e52d4de5496b003 (diff) |
(2/2) rename
Diffstat (limited to 'ParserFactory.h')
-rw-r--r-- | ParserFactory.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ParserFactory.h b/ParserFactory.h new file mode 100644 index 0000000..5430366 --- /dev/null +++ b/ParserFactory.h @@ -0,0 +1,20 @@ +#pragma once + +#include "FileReader.h" +#include "MuseumDeserializer.h" +#include "Parser.h" + +class ParserFactory { + typedef std::vector<Parser*> ParserCollection; + +public: + static void parse(FileReader & f, MuseumDeserializer & d); + static void register_strategy(Parser * p); + +private: + static ParserCollection & get_collection() { + static ParserCollection c = {}; + return c; + } +}; + |