#pragma once #include #include "FileReader.h" class HTTPFileReader : FileReader { protected: virtual void open(const std::string url); 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; };