blob: b2d8b37c8ca132829b3627381e9308d037c52825 (
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
|
#pragma once
#include <string>
#include <map>
#include "File.h"
using FactoryMap = std::map<std::string, const File *>;
class FileReader {
public:
static File & open(const std::string url);
private:
FileReader() = default;
virtual ~FileReader() = default;
private:
static void assign(const std::string type, const File * node);
static FactoryMap & get_map();
static const File * find_reader(const std::string type);
private:
friend File;
};
|