An abstract Url (either http or https). More...
#include <Url.hpp>
Public Member Functions | |
size_t | hashcode () const noexcept override |
Get the URI's hash code. More... | |
bool | isRegularDirectory () const override |
Returns true if the URI points to a file directory. More... | |
bool | isRegularFile () const override |
Returns true if the URI is a regular file. More... | |
std::string | toRawString () const override |
Get a string representing the raw URI. More... | |
std::string | toUriString () const override |
Get a string representing the URI, complete with scheme. More... | |
Public Member Functions inherited from Uri | |
virtual | ~Uri ()=default |
Destroy the URI instance. More... | |
virtual std::unique_ptr< Uri > | append (const std::string &pathComponent) const =0 |
Appends the path component to the supplied URI, returning a new URI. More... | |
virtual std::unique_ptr< ByteReadResource > | byteReadResource () const =0 |
Get a byte read resource for the URI. More... | |
virtual std::unique_ptr< ByteWriteResource > | byteWriteResource ()=0 |
Get a byte write resource for the URI. More... | |
virtual bool | canReadFrom () const =0 |
Can data be read from the URI via a read resource. More... | |
virtual bool | canWriteTo () const =0 |
Can data be written to the URI via a write resource. More... | |
virtual std::unique_ptr< Uri > | clone () const =0 |
Clone the concrete Uri. More... | |
std::shared_ptr< Uri > | cloneToShared () const |
Clone the concrete Uri to a shared pointer. More... | |
virtual void | dispatch (UriDispatcher &visitor) const =0 |
Visitor pattern dispatching. More... | |
virtual bool | isIterable () const =0 |
Does the URI have a non-recursive iterator (examples: file and zip archive URIs). More... | |
virtual bool | isRecursivelyIterable () const =0 |
Does the URI have a recursive iterator (examples: file and zip archive URIs). More... | |
virtual std::unique_ptr< UriIterator > | iterator () const =0 |
Get a (non-recursive) iterator. More... | |
virtual bool | operator== (const Uri &rhs) const =0 |
Compare the supplied URI to the current URI. More... | |
virtual std::unique_ptr< RecursiveUriIterator > | recursiveIterator () const =0 |
Get a recursive iterator. More... | |
virtual std::unique_ptr< Uri > | resolve (std::string_view path) const =0 |
Resolve the relative or absolute path, in reference to the current URI. More... | |
virtual std::unique_ptr< Utf32To8WriteResource > | utf32To8WriteResource ()=0 |
Get a UTF-32 to UTF-8 write resource for the URI. More... | |
virtual std::unique_ptr< Utf8To32ReadResource > | utf8To32ReadResource () const =0 |
Get a UTF-8 to UTF-32 read resource for the URI. More... | |
An abstract Url (either http or https).
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtual |
Returns true if the URI points to a file directory.
Implements Uri.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get a string representing the raw URI.
This may or may not be the same as the string returned by toUriString().
Implements Uri.
|
inlineoverridevirtual |
Get a string representing the URI, complete with scheme.
Implements Uri.