mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-04 22:15:42 +08:00
8ecdd75cf4
version: sunnypilot v2026.003.000 (dev)
date: 2026-08-04T01:06:20
master commit: 77f848ceac
15 lines
294 B
C++
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_;
|
|
};
|