blob: bf15253ee467af76660df6c8c18474cfd9542c4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef MBGL_UTIL_IO
#define MBGL_UTIL_IO
#include <string>
#include <stdexcept>
namespace mbgl {
namespace util {
struct IOException : std::runtime_error {
inline IOException(int err, const char* msg) : std::runtime_error(msg), code(err) {
}
const int code = 0;
};
void write_file(const std::string &filename, const std::string &data);
std::string read_file(const std::string &filename);
void deleteFile(const std::string& filename);
}
}
#endif
|