arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VFS_Multi Class Reference

Define multipe VFS with their mount point. More...

#include <VFS_Multi.h>

Inheritance diagram for VFS_Multi:
VFS

Public Member Functions

void add (VFS &vfs, const char *mountPoint)
 adds a vfs with the corresponding mount point
 
bool begin () override
 mount the file systems
 
void end () override
 unmount the file system
 
bool exists (const char *path)
 
bool exists (const std::string &path)
 
bool mkdir (const char *path)
 
bool mkdir (const std::string &path)
 
const charmountPoint ()
 provides the actual mount point
 
VFSFile open (const char *file, FileMode mode=VFS_FILE_READ)
 
VFSFile open (const std::string &path, FileMode mode=VFS_FILE_READ)
 
bool remove (const char *path)
 
bool remove (const std::string &path)
 
bool rename (const char *pathFrom, const char *pathTo)
 
bool rename (const std::string &pathFrom, const std::string &pathTo)
 
bool rmdir (const char *path)
 
bool rmdir (const std::string &path)
 
virtual void setMountPoint (const char *mp)
 Not used!
 

Protected Member Functions

const charexpand (const char *file)
 expands the file name with the mount point
 

Protected Attributes

const charmount_point = "/"
 
Str tmp
 
Vector< VFS * > vfs_vector
 

Detailed Description

Define multipe VFS with their mount point.

Author
Phil Schatzmann

Member Function Documentation

◆ add()

void add ( VFS vfs,
const char mountPoint 
)
inline

adds a vfs with the corresponding mount point

◆ begin()

bool begin ( )
inlineoverridevirtual

mount the file systems

Reimplemented from VFS.

◆ end()

void end ( )
inlineoverridevirtual

unmount the file system

Reimplemented from VFS.

◆ exists() [1/2]

bool exists ( const char path)
inlineinherited

◆ exists() [2/2]

bool exists ( const std::string &  path)
inlineinherited

◆ expand()

const char * expand ( const char file)
inlineprotectedinherited

expands the file name with the mount point

◆ mkdir() [1/2]

bool mkdir ( const char path)
inlineinherited

◆ mkdir() [2/2]

bool mkdir ( const std::string &  path)
inlineinherited

◆ mountPoint()

const char * mountPoint ( )
inlineinherited

provides the actual mount point

◆ open() [1/2]

VFSFile open ( const char file,
FileMode  mode = VFS_FILE_READ 
)
inlineinherited

◆ open() [2/2]

VFSFile open ( const std::string &  path,
FileMode  mode = VFS_FILE_READ 
)
inlineinherited

◆ remove() [1/2]

bool remove ( const char path)
inlineinherited

◆ remove() [2/2]

bool remove ( const std::string &  path)
inlineinherited

◆ rename() [1/2]

bool rename ( const char pathFrom,
const char pathTo 
)
inlineinherited

◆ rename() [2/2]

bool rename ( const std::string &  pathFrom,
const std::string &  pathTo 
)
inlineinherited

◆ rmdir() [1/2]

bool rmdir ( const char path)
inlineinherited

◆ rmdir() [2/2]

bool rmdir ( const std::string &  path)
inlineinherited

◆ setMountPoint()

virtual void setMountPoint ( const char mp)
inlinevirtual

Not used!

Reimplemented from VFS.

Member Data Documentation

◆ mount_point

const char* mount_point = "/"
protectedinherited

◆ tmp

Str tmp
protectedinherited

◆ vfs_vector

Vector<VFS*> vfs_vector
protected

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