From d8289105193707daede1a5b59137f18e20f20aeb Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 18 Oct 2024 15:48:14 +0200 Subject: (2/2) rename --- ParserFactory.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ParserFactory.h (limited to 'ParserFactory.h') 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 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; + } +}; + -- cgit v1.2.3