OpenEnroth 2a41f3e
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ProxyFileSystem Class Reference

#include <ProxyFileSystem.h>

Inheritance diagram for ProxyFileSystem:
FileSystem MaskingFileSystem

Public Member Functions

 ProxyFileSystem (FileSystem *base=nullptr)
 
FileSystembase () const
 
void setBase (FileSystem *base)
 
- Public Member Functions inherited from FileSystem
 FileSystem ()=default
 
virtual ~FileSystem ()=default
 
bool exists (std::string_view path) const
 
bool exists (FileSystemPathView path) const
 
FileStat stat (std::string_view path) const
 
FileStat stat (FileSystemPathView path) const
 
std::vector< DirectoryEntryls (std::string_view path) const
 
std::vector< DirectoryEntryls (FileSystemPathView path) const
 
void ls (std::string_view path, std::vector< DirectoryEntry > *entries) const
 
void ls (FileSystemPathView path, std::vector< DirectoryEntry > *entries) const
 
Blob read (std::string_view path) const
 
Blob read (FileSystemPathView path) const
 
void write (std::string_view path, const Blob &data)
 
void write (FileSystemPathView path, const Blob &data)
 
std::unique_ptr< InputStreamopenForReading (std::string_view path) const
 
std::unique_ptr< InputStreamopenForReading (FileSystemPathView path) const
 
std::unique_ptr< OutputStreamopenForWriting (std::string_view path)
 
std::unique_ptr< OutputStreamopenForWriting (FileSystemPathView path)
 
void rename (std::string_view srcPath, std::string_view dstPath)
 
void rename (FileSystemPathView srcPath, FileSystemPathView dstPath)
 
bool remove (std::string_view path)
 
bool remove (FileSystemPathView path)
 
std::string displayPath (std::string_view path) const
 
std::string displayPath (FileSystemPathView path) const
 

Protected Member Functions

virtual bool _exists (FileSystemPathView path) const override
 
virtual FileStat _stat (FileSystemPathView path) const override
 
virtual void _ls (FileSystemPathView path, std::vector< DirectoryEntry > *entries) const override
 
virtual Blob _read (FileSystemPathView path) const override
 
virtual void _write (FileSystemPathView path, const Blob &data) override
 
virtual std::unique_ptr< InputStream_openForReading (FileSystemPathView path) const override
 
virtual std::unique_ptr< OutputStream_openForWriting (FileSystemPathView path) override
 
virtual void _rename (FileSystemPathView srcPath, FileSystemPathView dstPath) override
 
virtual bool _remove (FileSystemPathView path) override
 
virtual std::string _displayPath (FileSystemPathView path) const override
 
FileSystemnonNullBase () const
 
virtual bool _exists (FileSystemPathView path) const =0
 
virtual FileStat _stat (FileSystemPathView path) const =0
 
virtual void _ls (FileSystemPathView path, std::vector< DirectoryEntry > *entries) const =0
 
virtual Blob _read (FileSystemPathView path) const =0
 
virtual void _write (FileSystemPathView path, const Blob &data)=0
 
virtual std::unique_ptr< InputStream_openForReading (FileSystemPathView path) const =0
 
virtual std::unique_ptr< OutputStream_openForWriting (FileSystemPathView path)=0
 
virtual void _rename (FileSystemPathView srcPath, FileSystemPathView dstPath)
 
virtual bool _remove (FileSystemPathView path)=0
 
virtual std::string _displayPath (FileSystemPathView path) const =0
 

Private Attributes

FileSystem_base = nullptr
 

Additional Inherited Members

- Protected Types inherited from FileSystem
template<class T >
using FileSystemTrieNode = detail::FileSystemTrieNode< T >
 
template<class T >
using FileSystemTrie = detail::FileSystemTrie< T >
 

Constructor & Destructor Documentation

◆ ProxyFileSystem()

ProxyFileSystem::ProxyFileSystem ( FileSystem base = nullptr)
inlineexplicit

Member Function Documentation

◆ _displayPath()

std::string ProxyFileSystem::_displayPath ( FileSystemPathView  path) const
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _exists()

bool ProxyFileSystem::_exists ( FileSystemPathView  path) const
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _ls()

void ProxyFileSystem::_ls ( FileSystemPathView  path,
std::vector< DirectoryEntry > *  entries 
) const
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _openForReading()

std::unique_ptr< InputStream > ProxyFileSystem::_openForReading ( FileSystemPathView  path) const
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _openForWriting()

std::unique_ptr< OutputStream > ProxyFileSystem::_openForWriting ( FileSystemPathView  path)
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _read()

Blob ProxyFileSystem::_read ( FileSystemPathView  path) const
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _remove()

bool ProxyFileSystem::_remove ( FileSystemPathView  path)
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _rename()

void ProxyFileSystem::_rename ( FileSystemPathView  srcPath,
FileSystemPathView  dstPath 
)
overrideprotectedvirtual

Reimplemented from FileSystem.

Reimplemented in MaskingFileSystem.

◆ _stat()

FileStat ProxyFileSystem::_stat ( FileSystemPathView  path) const
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ _write()

void ProxyFileSystem::_write ( FileSystemPathView  path,
const Blob data 
)
overrideprotectedvirtual

Implements FileSystem.

Reimplemented in MaskingFileSystem.

◆ base()

FileSystem * ProxyFileSystem::base ( ) const
inline

◆ nonNullBase()

FileSystem * ProxyFileSystem::nonNullBase ( ) const
protected

◆ setBase()

void ProxyFileSystem::setBase ( FileSystem base)
inline

Member Data Documentation

◆ _base

FileSystem* ProxyFileSystem::_base = nullptr
private

The documentation for this class was generated from the following files: