blob: df9a479c6e69d18329b16258c0a2ff101e241769 (
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
26
27
28
29
|
#pragma once
#include <fstream>
#include "File.h"
class LocalFile : File {
protected:
virtual void open(const std::string url);
public:
virtual void close();
virtual const std::string read();
public:
virtual ~LocalFile();
private:
LocalFile(const LocalFile *);
virtual LocalFile * clone() const;
private:
using File::File;
constexpr static const std::string protocol = "file://";
static LocalFile instance;
private:
std::ifstream * _file = nullptr;
};
|