mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-03 19:29:24 +08:00
ed3a61840f
version: sunnypilot v2026.003.000 (dev)
date: 2026-08-02T04:29:20
master commit: 1a07e47228
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_;
|
|
};
|