35 bool update(
const std::string &name, std::string_view data);
36 bool load(
const std::string &name, std::ostream &os);
37 bool exists(
const std::string &name);
40 bool updateCopyFile(
const std::string &name,
const std::string &src_path);
46 bool loadByPath(
const std::string &path, std::ostream &os);
47 bool updateByPath(
const std::string &path, std::string_view data);
static v2f dir(const v2f &pos_dist)
Definition: camera.cpp:204
Definition: filecache.h:28
bool exists(const std::string &name)
Definition: filecache.cpp:101
bool updateCopyFile(const std::string &name, const std::string &src_path)
Definition: filecache.cpp:108
void createDir()
Definition: filecache.cpp:31
bool update(const std::string &name, std::string_view data)
Definition: filecache.cpp:89
bool updateByPath(const std::string &path, std::string_view data)
Definition: filecache.cpp:70
FileCache(const std::string &dir)
Definition: filecache.h:33
bool load(const std::string &name, std::ostream &os)
Definition: filecache.cpp:95
bool loadByPath(const std::string &path, std::ostream &os)
Definition: filecache.cpp:39
std::string m_dir
Definition: filecache.h:43