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 /HTTPFileReader.h | |
parent | fab0fccc0aaa18e915bcd08e81e5a04177e435cd (diff) |
refactor file reading factory
Diffstat (limited to 'HTTPFileReader.h')
-rw-r--r-- | HTTPFileReader.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/HTTPFileReader.h b/HTTPFileReader.h index 4b05e18..59a8599 100644 --- a/HTTPFileReader.h +++ b/HTTPFileReader.h @@ -5,24 +5,15 @@ #include "FileReader.h" class HTTPFileReader : FileReader { + friend class FileReaderFactory; + using FileReader::FileReader; + protected: - virtual void open(const std::string url); + virtual void open(); public: virtual void close(); virtual const std::string read(); -public: - virtual ~HTTPFileReader(); - -private: - HTTPFileReader(const HTTPFileReader *); - virtual HTTPFileReader * clone() const; - -private: - using FileReader::FileReader; - constexpr static const std::string protocol = "https://"; - static HTTPFileReader instance; - private: cpr::Response _res; }; |