blob: f896ec819950acfafd864bef298b30b884766694 (
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
25
|
#pragma once
class FileReaderFactory;
#include <string>
class FileReader {
protected:
virtual void open(const std::string url) = 0;
public:
virtual void close() = 0;
virtual const std::string read() = 0;
public:
virtual ~FileReader() = default;
protected:
FileReader() = default;
virtual FileReader * clone() const = 0;
protected:
FileReader(const std::string protocol);
friend FileReaderFactory;
};
|