aboutsummaryrefslogtreecommitdiff
path: root/FileReaderFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'FileReaderFactory.h')
-rw-r--r--FileReaderFactory.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/FileReaderFactory.h b/FileReaderFactory.h
index 0829985..85521c0 100644
--- a/FileReaderFactory.h
+++ b/FileReaderFactory.h
@@ -1,27 +1,16 @@
#pragma once
#include <string>
-#include <map>
#include <memory>
#include "FileReader.h"
-using FactoryMap = std::map<std::string, const FileReader *>;
-
class FileReaderFactory {
public:
- static std::unique_ptr<FileReader> open(const std::string url);
+ std::unique_ptr<FileReader> create(const std::string & url);
-private:
+public:
FileReaderFactory() = default;
virtual ~FileReaderFactory() = default;
-
-private:
- static void register_strategy(const std::string type, const FileReader * node);
- static FactoryMap & get_map();
- static const FileReader * find_reader(const std::string type);
-
-private:
- friend FileReader;
};