|
AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
|
Abstract interface for file system operations. More...
#include <file_system.h>
Public Member Functions | |
| virtual | ~IFileSystem ()=default |
| virtual bool | exists (const char *path)=0 |
| Check if a file exists. | |
| virtual bool | readFile (const char *path, std::string &content)=0 |
| Read entire file content. | |
| virtual bool | writeFile (const char *path, const std::string &content)=0 |
| Write content to a file. | |
Abstract interface for file system operations.
Provides a platform-independent way to perform file operations. Implementations can use LittleFS, SD cards, or standard file systems.
Definition at line 11 of file file_system.h.
|
virtualdefault |
|
pure virtual |
Check if a file exists.
| path | Path to the file |
Implemented in LittleFSFileSystem.
|
pure virtual |
Read entire file content.
| path | Path to the file |
| content | Output parameter for file content |
Implemented in LittleFSFileSystem.
|
pure virtual |
Write content to a file.
| path | Path to the file |
| content | Content to write |
Implemented in LittleFSFileSystem.