Abstract base class of resource classes. More...
#include <Resource.hpp>
Public Member Functions | |
virtual | ~Resource ()=default |
Destroy the resource instance. More... | |
virtual void | close ()=0 |
Close the stream(s) in the resource. More... | |
virtual const Uri & | uri () const =0 |
Get the URI associated with this resource. More... | |
Abstract base class of resource classes.
Instances of concrete classes are typically used within a std::unique_ptr<Resource> or std::shared_ptr<Resource>.
|
virtualdefault |
Destroy the resource instance.
|
pure virtual |
Close the stream(s) in the resource.
Implemented in HttpsUtf8To32ReadResource, HttpUtf8To32ReadResource, StringUriUtf32To8WriteResource, FileByteReadResource, FileUtf32To8WriteResource, FileUtf8To32ReadResource, FileByteWriteResource, StringUriUtf8To32ReadResource, HttpByteReadResource, HttpsByteReadResource, StringUriByteWriteResource, ZipEntryUtf8To32ReadResource, StringUriByteReadResource, and ZipEntryByteReadResource.
|
pure virtual |
Get the URI associated with this resource.
Implemented in HttpsUtf8To32ReadResource, HttpUtf8To32ReadResource, StringUriUtf32To8WriteResource, StringUriUtf8To32ReadResource, ZipEntryUtf8To32ReadResource, HttpByteReadResource, HttpsByteReadResource, FileByteReadResource, FileUtf32To8WriteResource, FileUtf8To32ReadResource, StringUriByteWriteResource, FileByteWriteResource, StringUriByteReadResource, and ZipEntryByteReadResource.