#pragma once #include #include "File.h" class LocalFile : File { protected: virtual void open(const std::string url); public: virtual void close(); virtual const std::string read(); public: virtual ~LocalFile(); private: LocalFile(const LocalFile *); virtual LocalFile * clone() const; private: using File::File; constexpr static const std::string protocol = "file://"; static LocalFile instance; private: std::ifstream * _file = nullptr; };