PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Interface for all filesystems, such as FAT 16/32. More...
#include <PropWare/filesystem/filesystem.h>
Public Types | |
enum | ErrorCode { NO_ERROR = 0, BEG_ERROR = HD44780_MAX_ERROR + 1, FILESYSTEM_ALREADY_MOUNTED = BEG_ERROR, END_ERROR = FILESYSTEM_ALREADY_MOUNTED } |
Public Member Functions | |
virtual PropWare::ErrorCode | mount (uint8_t buffer[], const uint8_t partition=0)=0 |
Prepare a filesystem for use; All filesystems must be mounted before files can be listed or opened. More... | |
virtual PropWare::ErrorCode | unmount ()=0 |
Unmounting will ensure that any changes are saved back to the physical device. | |
Static Public Member Functions | |
static void | print_error_str (const Printer &printer, const ErrorCode err) |
If an error occurs, this method can be used to determine what that error actually means. More... | |
Static Public Attributes | |
static const int | FOLDER_ID = INT32_MAX |
Friends | |
class | File |
Interface for all filesystems, such as FAT 16/32.
It may need significant modifications to work with anything other than FAT 16/32 because those are the only filesystems I was familiar with at the time that I authored it.
Definition at line 39 of file filesystem.h.
Enumerator | |
---|---|
FILESYSTEM_ALREADY_MOUNTED | Filesystem Error 0 |
END_ERROR | End Filesystem error |
Definition at line 44 of file filesystem.h.
|
pure virtual |
Prepare a filesystem for use; All filesystems must be mounted before files can be listed or opened.
[in] | buffer | Scratch buffer where data can be temporarily stored during mounting |
[in] | partition | If multiple partitions are supported, the partition number can be specified here |
Implemented in PropWare::FatFS.
|
static |
If an error occurs, this method can be used to determine what that error actually means.
[in] | printer | Where the error should be printed |
[in] | err | The error code that was thrown |
Definition at line 78 of file filesystem.h.