MPD
0.20.18
|
#include <StorageInterface.hxx>
Public Member Functions | |
Storage ()=default | |
Storage (const Storage &)=delete | |
virtual | ~Storage () |
virtual StorageFileInfo | GetInfo (const char *uri_utf8, bool follow)=0 |
Throws #std::runtime_error on error. More... | |
virtual StorageDirectoryReader * | OpenDirectory (const char *uri_utf8)=0 |
Throws #std::runtime_error on error. More... | |
virtual gcc_pure std::string | MapUTF8 (const char *uri_utf8) const noexcept=0 |
Map the given relative URI to an absolute URI. More... | |
virtual gcc_pure AllocatedPath | MapFS (const char *uri_utf8) const noexcept |
Map the given relative URI to a local file path. More... | |
gcc_pure AllocatedPath | MapChildFS (const char *uri_utf8, const char *child_utf8) const noexcept |
virtual gcc_pure const char * | MapToRelativeUTF8 (const char *uri_utf8) const noexcept=0 |
Check if the given URI points inside this storage. More... | |
Definition at line 45 of file StorageInterface.hxx.
|
default |
|
delete |
|
inlinevirtual |
Definition at line 49 of file StorageInterface.hxx.
|
pure virtual |
Throws #std::runtime_error on error.
Implemented in CompositeStorage.
|
noexcept |
|
virtualnoexcept |
Map the given relative URI to a local file path.
Returns AllocatedPath::Null() on error or if this storage does not support local files.
Reimplemented in CompositeStorage.
|
pure virtualnoexcept |
Check if the given URI points inside this storage.
If yes, then it returns a relative URI (pointing inside the given string); if not, returns nullptr.
Implemented in CompositeStorage.
|
pure virtualnoexcept |
Map the given relative URI to an absolute URI.
Implemented in CompositeStorage.
|
pure virtual |
Throws #std::runtime_error on error.
Implemented in CompositeStorage.