diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-25 14:16:55 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-25 14:16:55 +0100 |
commit | 9205f93bda48ffdc080d40140511b68b88c46fd7 (patch) | |
tree | 9de14ae45b18125c563eb01595238128453604b4 /oop2eindopdr/CacheManager.h | |
parent | 2b1145fb0aec3feb9cbab2df9be57ab43fc7f975 (diff) |
cache working with asynchronous image downloads
Diffstat (limited to 'oop2eindopdr/CacheManager.h')
-rw-r--r-- | oop2eindopdr/CacheManager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oop2eindopdr/CacheManager.h b/oop2eindopdr/CacheManager.h index e441b1b..0b15cfa 100644 --- a/oop2eindopdr/CacheManager.h +++ b/oop2eindopdr/CacheManager.h @@ -10,8 +10,6 @@ private: std::string cache_path; /** @brief pointers to open file handles */ std::vector<std::fstream*> files; - /** @brief add cache path before filename */ - virtual std::string prefix_cache_path(const char* filename); public: /** @brief initialize CacheManager class at `cache_path` */ CacheManager(const char* cache_path); @@ -36,6 +34,9 @@ public: virtual bool cache_exists(const char* filename); virtual bool cache_exists(std::string filename); + /** @brief add cache path before filename */ + virtual std::string prefix_cache_path(const char* filename); + /** @brief currently opened cache update unix timestamp */ uint64_t age; }; |