diff options
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; }; |