![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Per-resolve-pass cache keyed by resolved path. More...
#include <MultiColumnSeriesFile.hpp>
Public Member Functions | |
| const ParsedSeriesFile * | get_or_parse (const std::string &abs_path, std::vector< std::string > &errors, SeriesFileStatus *status=nullptr) |
| Return the parsed file, parsing it on first request. | |
| int | parse_count () const noexcept |
| Number of actual parse attempts (test hook for the single-read assertion). | |
Per-resolve-pass cache keyed by resolved path.
One instance is shared by the rain-gage and timeseries loaders so a file referenced by both parses once (plan ยง5 single-read guarantee). Failures are cached too, so N consumers of a broken file trigger one open attempt.
| const ParsedSeriesFile * openswmm::input::MultiColumnFileCache::get_or_parse | ( | const std::string & | abs_path, |
| std::vector< std::string > & | errors, | ||
| SeriesFileStatus * | status = nullptr ) |
Return the parsed file, parsing it on first request.
| abs_path | Resolved path (the cache key). |
| errors | Receives file-level parse errors (first parse only). |
| status | Optional; receives the entry's status. |
|
inlinenoexcept |
Number of actual parse attempts (test hook for the single-read assertion).