mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-13 02:44:36 +08:00
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_;
|
|
};
|