AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
IFileSystem Interface Referenceabstract

Abstract interface for file system operations. More...

#include <file_system.h>

Inheritance diagram for IFileSystem:
LittleFSFileSystem

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IFileSystem()

virtual IFileSystem::~IFileSystem ( )
virtualdefault

Member Function Documentation

◆ exists()

virtual bool IFileSystem::exists ( const char *  path)
pure virtual

Check if a file exists.

Parameters
pathPath to the file
Returns
true if file exists, false otherwise

Implemented in LittleFSFileSystem.

◆ readFile()

virtual bool IFileSystem::readFile ( const char *  path,
std::string &  content 
)
pure virtual

Read entire file content.

Parameters
pathPath to the file
contentOutput parameter for file content
Returns
true if successful, false otherwise

Implemented in LittleFSFileSystem.

◆ writeFile()

virtual bool IFileSystem::writeFile ( const char *  path,
const std::string &  content 
)
pure virtual

Write content to a file.

Parameters
pathPath to the file
contentContent to write
Returns
true if successful, false otherwise

Implemented in LittleFSFileSystem.


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