aboutsummaryrefslogtreecommitdiff
path: root/FileReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'FileReader.h')
-rw-r--r--FileReader.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/FileReader.h b/FileReader.h
index b2d8b37..90d5e32 100644
--- a/FileReader.h
+++ b/FileReader.h
@@ -3,24 +3,24 @@
#include <string>
#include <map>
-#include "File.h"
+#include "FileStrategy.h"
-using FactoryMap = std::map<std::string, const File *>;
+using FactoryMap = std::map<std::string, const FileStrategy *>;
class FileReader {
public:
- static File & open(const std::string url);
+ static FileStrategy & open(const std::string url);
private:
FileReader() = default;
virtual ~FileReader() = default;
private:
- static void assign(const std::string type, const File * node);
+ static void register_strategy(const std::string type, const FileStrategy * node);
static FactoryMap & get_map();
- static const File * find_reader(const std::string type);
+ static const FileStrategy * find_reader(const std::string type);
private:
- friend File;
+ friend FileStrategy;
};