20 #ifndef MPD_STORAGE_INTERFACE_HXX 21 #define MPD_STORAGE_INTERFACE_HXX 37 virtual const char *
Read() = 0;
65 virtual std::string
MapUTF8(
const char *uri_utf8)
const noexcept = 0;
77 const char *child_utf8)
const noexcept;
virtual gcc_pure AllocatedPath MapFS(const char *uri_utf8) const noexcept
Map the given relative URI to a local file path.
virtual StorageDirectoryReader * OpenDirectory(const char *uri_utf8)=0
Throws #std::runtime_error on error.
virtual const char * Read()=0
A path name in the native file system character set.
virtual gcc_pure const char * MapToRelativeUTF8(const char *uri_utf8) const noexcept=0
Check if the given URI points inside this storage.
virtual gcc_pure std::string MapUTF8(const char *uri_utf8) const noexcept=0
Map the given relative URI to an absolute URI.
virtual StorageFileInfo GetInfo(const char *uri_utf8, bool follow)=0
Throws #std::runtime_error on error.
gcc_pure AllocatedPath MapChildFS(const char *uri_utf8, const char *child_utf8) const noexcept
StorageDirectoryReader()=default
virtual StorageFileInfo GetInfo(bool follow)=0
Throws #std::runtime_error on error.
virtual ~StorageDirectoryReader()