20 #ifndef MPD_STORAGE_INTERFACE_HXX
21 #define MPD_STORAGE_INTERFACE_HXX
37 virtual const char *
Read() = 0;
67 virtual std::string
MapUTF8(
const char *uri_utf8)
const = 0;
79 const char *child_utf8)
const;
gcc_pure AllocatedPath MapChildFS(const char *uri_utf8, const char *child_utf8) const
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 std::string MapUTF8(const char *uri_utf8) const =0
Map the given relative URI to an absolute URI.
virtual gcc_pure const char * MapToRelativeUTF8(const char *uri_utf8) const =0
Check if the given URI points inside this storage.
virtual gcc_pure StorageFileInfo GetInfo(bool follow)=0
Throws #std::runtime_error on error.
virtual gcc_pure AllocatedPath MapFS(const char *uri_utf8) const
Map the given relative URI to a local file path.
StorageDirectoryReader()=default
virtual gcc_pure StorageFileInfo GetInfo(const char *uri_utf8, bool follow)=0
Throws #std::runtime_error on error.
virtual ~StorageDirectoryReader()