aboutsummaryrefslogtreecommitdiff
path: root/FileReader.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
commit76e61d68bbf568ec0d7fc4632e52d4de5496b003 (patch)
tree92a2dc9b12a542456bdc154f44deb34925883210 /FileReader.h
parent3f63576819151ff15237a9b4f0651c538cfef067 (diff)
(1/2) rename
Diffstat (limited to 'FileReader.h')
-rw-r--r--FileReader.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/FileReader.h b/FileReader.h
index 1cf62ba..0829985 100644
--- a/FileReader.h
+++ b/FileReader.h
@@ -4,24 +4,24 @@
#include <map>
#include <memory>
-#include "FileStrategy.h"
+#include "FileReader.h"
-using FactoryMap = std::map<std::string, const FileStrategy *>;
+using FactoryMap = std::map<std::string, const FileReader *>;
-class FileReader {
+class FileReaderFactory {
public:
- static std::unique_ptr<FileStrategy> open(const std::string url);
+ static std::unique_ptr<FileReader> open(const std::string url);
private:
- FileReader() = default;
- virtual ~FileReader() = default;
+ FileReaderFactory() = default;
+ virtual ~FileReaderFactory() = default;
private:
- static void register_strategy(const std::string type, const FileStrategy * node);
+ static void register_strategy(const std::string type, const FileReader * node);
static FactoryMap & get_map();
- static const FileStrategy * find_reader(const std::string type);
+ static const FileReader * find_reader(const std::string type);
private:
- friend FileStrategy;
+ friend FileReader;
};