aboutsummaryrefslogtreecommitdiff
path: root/LocalFileReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'LocalFileReader.h')
-rw-r--r--LocalFileReader.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/LocalFileReader.h b/LocalFileReader.h
index 6ea4f84..b9daa55 100644
--- a/LocalFileReader.h
+++ b/LocalFileReader.h
@@ -5,23 +5,17 @@
#include "FileReader.h"
class LocalFileReader : FileReader {
-protected:
- virtual void open(const std::string url);
-public:
- virtual void close();
- virtual const std::string read();
+ friend class FileReaderFactory;
+ using FileReader::FileReader;
public:
virtual ~LocalFileReader();
-private:
- LocalFileReader(const LocalFileReader *);
- virtual LocalFileReader * clone() const;
-
-private:
- using FileReader::FileReader;
- constexpr static const std::string protocol = "file://";
- static LocalFileReader instance;
+protected:
+ virtual void open();
+public:
+ virtual void close();
+ virtual const std::string read();
private:
std::ifstream * file = nullptr;