MPD
0.20.6
|
#include <StorageInterface.hxx>
Public Member Functions | |
Storage ()=default | |
Storage (const Storage &)=delete | |
virtual | ~Storage () |
virtual gcc_pure 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 =0 |
Map the given relative URI to an absolute URI. More... | |
virtual gcc_pure AllocatedPath | MapFS (const char *uri_utf8) const |
Map the given relative URI to a local file path. More... | |
gcc_pure AllocatedPath | MapChildFS (const char *uri_utf8, const char *child_utf8) const |
virtual gcc_pure const char * | MapToRelativeUTF8 (const char *uri_utf8) const =0 |
Check if the given URI points inside this storage. More... | |
Definition at line 46 of file StorageInterface.hxx.
|
default |
|
delete |
|
inlinevirtual |
Definition at line 50 of file StorageInterface.hxx.
|
pure virtual |
Throws #std::runtime_error on error.
Implemented in CompositeStorage.
gcc_pure AllocatedPath Storage::MapChildFS | ( | const char * | uri_utf8, |
const char * | child_utf8 | ||
) | const |
|
virtual |
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 virtual |
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 virtual |
Map the given relative URI to an absolute URI.
Implemented in CompositeStorage.
|
pure virtual |
Throws #std::runtime_error on error.
Implemented in CompositeStorage.