aboutsummaryrefslogtreecommitdiff
path: root/Parser.h
blob: c6a2cf15d0a2bf20788ecdc25a90c06b7fce702f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;
};