#pragma once #include "FileReader.h" #include "MuseumDeserializer.h" class Parser { public: 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; };