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