![]() |
Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
|
#include <cache_helper.hpp>
Public Member Functions | |
| PVProfileIDCache (PVProfileIDCache const &)=delete | |
| void | operator= (PVProfileIDCache const &)=delete |
| void | setCacheFilename (const std::string &filename) |
| void | updateCache (size_t locationID, const std::string &roof_orientation, size_t profileID) |
| std::optional< size_t > | readCache (size_t locationID, const std::string &roof_orientation) |
| void | saveCacheFile () |
Static Public Member Functions | |
| static PVProfileIDCache & | GetInstance () |
This is the singleton class for storing and querying the cache file for the PV profiles allocated to a given location referenced by the locationID and roof orientation.
|
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