aboutsummaryrefslogtreecommitdiff
path: root/FileStrategy.h
diff options
context:
space:
mode:
Diffstat (limited to 'FileStrategy.h')
-rw-r--r--FileStrategy.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/FileStrategy.h b/FileStrategy.h
index 6338d71..f896ec8 100644
--- a/FileStrategy.h
+++ b/FileStrategy.h
@@ -1,10 +1,10 @@
#pragma once
-class FileReader;
+class FileReaderFactory;
#include <string>
-class FileStrategy {
+class FileReader {
protected:
virtual void open(const std::string url) = 0;
public:
@@ -12,14 +12,14 @@ public:
virtual const std::string read() = 0;
public:
- virtual ~FileStrategy() = default;
+ virtual ~FileReader() = default;
protected:
- FileStrategy() = default;
- virtual FileStrategy * clone() const = 0;
+ FileReader() = default;
+ virtual FileReader * clone() const = 0;
protected:
- FileStrategy(const std::string protocol);
- friend FileReader;
+ FileReader(const std::string protocol);
+ friend FileReaderFactory;
};