![]() |
Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
|
#include <cache_helper.hpp>
Public Member Functions | |
| HPProfileIDCache (HPProfileIDCache const &)=delete | |
| void | operator= (HPProfileIDCache const &)=delete |
| void | setCacheFilename (const std::string &filename) |
| void | updateCache (size_t unitID, size_t profileID) |
| std::optional< size_t > | readCache (size_t unitID) |
| void | saveCacheFile () |
Static Public Member Functions | |
| static HPProfileIDCache & | GetInstance () |
This is the singelton class for storing and querying the cache file for the heat pump profiles allocated to a given building referenced by the unitID.
|
delete |
|
inlinestatic |
Static method for getting the only instance of the singleton class
|
delete |
|
inline |
Read an entry. Returns std::nullopt if not found
|
inline |
Saves the current content of the cache file.
|
inline |
Set the filename for the cache file
|
inline |
Update or insert an entry