diff options
Diffstat (limited to 'HTTPFile.h')
-rw-r--r-- | HTTPFile.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -2,9 +2,9 @@ #include <cpr/cpr.h> -#include "FileStrategy.h" +#include "FileReader.h" -class HTTPFile : FileStrategy { +class HTTPFileReader : FileReader { protected: virtual void open(const std::string url); public: @@ -12,16 +12,16 @@ public: virtual const std::string read(); public: - virtual ~HTTPFile(); + virtual ~HTTPFileReader(); private: - HTTPFile(const HTTPFile *); - virtual HTTPFile * clone() const; + HTTPFileReader(const HTTPFileReader *); + virtual HTTPFileReader * clone() const; private: - using FileStrategy::FileStrategy; + using FileReader::FileReader; constexpr static const std::string protocol = "https://"; - static HTTPFile instance; + static HTTPFileReader instance; private: cpr::Response _res; |