diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 14:00:41 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 14:00:41 +0200 |
commit | bc02054d56118110a36aea72d21f9d5e73d07d1f (patch) | |
tree | 2fc49dd3f93307df6242b8e63bca0e26b2e62168 /FileReader.cpp | |
parent | fab0fccc0aaa18e915bcd08e81e5a04177e435cd (diff) |
refactor file reading factory
Diffstat (limited to 'FileReader.cpp')
-rw-r--r-- | FileReader.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/FileReader.cpp b/FileReader.cpp index b76de50..89ebe17 100644 --- a/FileReader.cpp +++ b/FileReader.cpp @@ -1,9 +1,6 @@ -#include <string> - #include "FileReader.h" -#include "FileReaderFactory.h" -FileReader::FileReader(const std::string protocol) { - FileReaderFactory::register_strategy(protocol, this); -} +using namespace std; + +FileReader::FileReader(const string & url) : url(url) { } |