1#ifndef IV_SRC_CACHE_EDITDIAMARCACHE_HPP_
2#define IV_SRC_CACHE_EDITDIAMARCACHE_HPP_
29 [[nodiscard]] std::shared_ptr<GeneralCache>
generalCache()
const;
50 std::shared_ptr<std::map<std::string, SpecificProjectCache>>
nlohmann::json JSON
Definition structs.hpp:7
Class to manage the cache of the EditDiamar application.
Definition EditDiamarCache.hpp:14
EditDiamarCache()
Definition EditDiamarCache.cpp:9
std::shared_ptr< std::map< std::string, SpecificProjectCache > > m_cacheFromSpecificProjects
Definition EditDiamarCache.hpp:51
~EditDiamarCache()=default
std::shared_ptr< std::map< std::string, SpecificProjectCache > > cacheFromSpecificProjects() const
Get the cache from specific projects.
Definition EditDiamarCache.cpp:99
JSON m_json
Definition EditDiamarCache.hpp:53
std::shared_ptr< GeneralCache > generalCache() const
Get the general cache.
Definition EditDiamarCache.cpp:104
std::shared_ptr< GeneralCache > m_generalCache
Definition EditDiamarCache.hpp:52
void save()
Save cache to file.
Definition EditDiamarCache.cpp:15
void load()
Load cache from file.
Definition EditDiamarCache.cpp:56
Definition EditDiamarCache.cpp:7
Definition EditDiamarCache.hpp:42
static constexpr uint8_t numOfDirectoriesToKeep
Definition EditDiamarCache.hpp:45
static constexpr uint8_t indentationSize
Definition EditDiamarCache.hpp:44
static constexpr std::string_view cacheFileName
Definition EditDiamarCache.hpp:43