aboutsummaryrefslogtreecommitdiff
path: root/FileReader.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 14:00:41 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-22 14:00:41 +0200
commitbc02054d56118110a36aea72d21f9d5e73d07d1f (patch)
tree2fc49dd3f93307df6242b8e63bca0e26b2e62168 /FileReader.cpp
parentfab0fccc0aaa18e915bcd08e81e5a04177e435cd (diff)
refactor file reading factory
Diffstat (limited to 'FileReader.cpp')
-rw-r--r--FileReader.cpp9
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) { }