OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
HotstartFormat.cpp File Reference

Legacy HSF v4 binary hot-start file — parser + materialiser. More...

#include "HotstartFormat.hpp"
#include <cstdint>
#include <cstdio>
#include <cstring>
Include dependency graph for HotstartFormat.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::gpkg
 
namespace  openswmm::gpkg::formats
 

Functions

FormatResult openswmm::gpkg::formats::parseHotstartHsf (const std::string &path, HotstartSnapshot &snapshot)
 Parse an HSF v4 file into a HotstartSnapshot.
 
FormatResult openswmm::gpkg::formats::writeHotstartHsf (const std::string &path, const HotstartSnapshot &snapshot)
 Write a HotstartSnapshot to an HSF v4 file at path.
 

Detailed Description

Legacy HSF v4 binary hot-start file — parser + materialiser.

See HotstartFormat.hpp for the scope and field-mapping rules. The binary layout mirrors src/legacy/engine/hotstart.c (saveRouting/readRouting) for the routing-state portion.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License