aboutsummaryrefslogtreecommitdiff
path: root/oop2eindopdr/CacheManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'oop2eindopdr/CacheManager.h')
-rw-r--r--oop2eindopdr/CacheManager.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/oop2eindopdr/CacheManager.h b/oop2eindopdr/CacheManager.h
index 9587e24..7b740ec 100644
--- a/oop2eindopdr/CacheManager.h
+++ b/oop2eindopdr/CacheManager.h
@@ -6,8 +6,12 @@
/** @brief cache storage manager */
class CacheManager {
private:
- std::string cache_path; /** @brief currently opened cache location */
+ /** @brief currently opened cache location */
+ 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);
@@ -21,8 +25,7 @@ public:
/**
* @brief check cache file structure
*
- * automatically updates chache if stale and/or creates cache when
- * non-existant
+ * automatically creates cache when non-existant
*/
virtual void verify_cache();