blob: b9daa555cb432698bc69da87ad3ec46e93ca8c9f (
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
#include <fstream>
#include "FileReader.h"
class LocalFileReader : FileReader {
friend class FileReaderFactory;
using FileReader::FileReader;
public:
virtual ~LocalFileReader();
protected:
virtual void open();
public:
virtual void close();
virtual const std::string read();
private:
std::ifstream * file = nullptr;
std::string * content = nullptr;
};
|