Files
github-actions[bot] 3dcc048299 sunnypilot v2026.002.000 release
date: 2026-06-19T21:43:27
master commit: 5d90689776fdc7a3be31fc1335003aee20a2ba62
2026-06-19 21:43:47 +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_;
};