#include <FsBase.h>

Inheritance diagram for IFS::FsBase:
[legend]
Collaboration diagram for IFS::FsBase:
[legend]

Public Member Functions

 FsBase (IFileSystem *filesys)
 
bool isValid () const
 
int getLastError ()
 determine if an error occurred during operation More...
 
String getErrorString (int err) const
 
String getLastErrorString () const
 
FileSystemgetFileSystem () const
 

Protected Member Functions

bool check (int res)
 Check file operation result and note error code. More...
 

Protected Attributes

int lastError {FS_OK}
 

Constructor & Destructor Documentation

◆ FsBase()

IFS::FsBase::FsBase ( IFileSystem filesys)
inline

Member Function Documentation

◆ check()

bool IFS::FsBase::check ( int  res)
inlineprotected

Check file operation result and note error code.

Parameters
resresult of fileXXX() operation to check
Return values
booltrue if operation was successful, false if error occurred

◆ getErrorString()

String IFS::FsBase::getErrorString ( int  err) const
inline

◆ getFileSystem()

FileSystem* IFS::FsBase::getFileSystem ( ) const
inline

◆ getLastError()

int IFS::FsBase::getLastError ( )
inline

determine if an error occurred during operation

Return values
intfilesystem error code

◆ getLastErrorString()

String IFS::FsBase::getLastErrorString ( ) const
inline

◆ isValid()

bool IFS::FsBase::isValid ( ) const
inline

Member Data Documentation

◆ lastError

int IFS::FsBase::lastError {FS_OK}
mutableprotected

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