aboutsummaryrefslogtreecommitdiff
path: root/FileReader.h
blob: ee6e550cda5c07db899a42de0eb40f2992b70fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

class FileReaderFactory;

#include <string>

class FileReader {
	friend class FileReaderFactory;

protected:
	FileReader(const std::string & url);
public:
	virtual ~FileReader() = default;

protected:
	virtual void open() = 0;
public:
	virtual void close() = 0;
	virtual const std::string read() = 0;

protected:
	const std::string url = "";
};