diff options
Diffstat (limited to 'Parser.h')
-rw-r--r-- | Parser.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -5,7 +5,15 @@ class Parser { public: - virtual void parse(FileReader & f, MuseumDeserializer & d) = 0; - virtual unsigned int heuristic(FileReader & f) = 0; + virtual void parse(MuseumDeserializer & d) = 0; + virtual unsigned int heuristic() = 0; + +protected: + friend class ParserFactory; + void set_file(FileReader & f); + FileReader & get_file(); + +private: + FileReader * file = nullptr; }; |