Files
github-actions[bot] f8e13417f2 sunnypilot v2026.003.000 release
date: 2026-08-15T14:20:10
master commit: d48cfa730bf21593b684efeaf3fd8940695e1dea
2026-08-15 14:20:16 +08:00

15 lines
294 B
C++

#pragma once
#include <atomic>
#include <string>
class FileReader {
public:
FileReader(bool cache_to_local) : cache_to_local_(cache_to_local) {}
virtual ~FileReader() {}
std::string read(const std::string &file, std::atomic<bool> *abort = nullptr);
private:
bool cache_to_local_;
};