diff options
Diffstat (limited to 'FileReader.h')
-rw-r--r-- | FileReader.h | 18 |
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; }; |