AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
file_system.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3
12{
13public:
14 virtual ~IFileSystem() = default;
15
21 virtual bool exists(const char* path) = 0;
22
29 virtual bool readFile(const char* path, std::string& content) = 0;
30
37 virtual bool writeFile(const char* path, const std::string& content) = 0;
38};
Abstract interface for file system operations.
Definition file_system.h:12
virtual bool writeFile(const char *path, const std::string &content)=0
Write content to a file.
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 ~IFileSystem()=default