![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
#include <CheckpointInspection.hpp>
Classes | |
| struct | Companion |
| struct | Driver |
| struct | Reports |
Public Member Functions | |
| std::string | json () const |
| Serialize exact checkpoint inspection metadata as compact schema-one JSON. | |
| bool | operator== (const CheckpointInspection &other) const =default |
| Compare all CheckpointInspection fields using default member equality. | |
Public Attributes | |
| uint32_t | schema_version = 1 |
| double | engine_seconds = 0 |
| double | engine_date = 0 |
| double | start_date = 0 |
| double | report_start_date = 0 |
| double | next_report_seconds = 0 |
| uint64_t | checkpoint_bytes = 0 |
| std::optional< double > | completed_source_seconds |
| std::optional< Driver > | driver |
| Reports | binary |
| Reports | mesh |
| bool | file_outputs = false |
| bool | relocatable_bundle = false |
| bool | detailed_sources = false |
| uint64_t | source_frames = 0 |
| uint64_t | source_prefix_bytes = 0 |
| std::vector< Companion > | companions |
Internal schema for a compatible fresh session's validated saved state. Inspection prepares/discards output copies; it never installs or publishes. Dates use the engine calendar; elapsed times and cadences use seconds.
| std::string openswmm::CheckpointInspection::json | ( | ) | const |
Serialize exact checkpoint inspection metadata as compact schema-one JSON.
Serializes engine calendar dates and elapsed/cadence seconds as documented by fields, without output installation or file access. Rejects unsupported schema, nonfinite floating fields, invalid UTF-8 and invalid companion role with std::logic_error. Does not independently prove checkpoint/model compatibility or nonnegative semantic ranges; allocation can throw.
|
default |
Compare all CheckpointInspection fields using default member equality.
| [in] | other | Borrowed metadata value to compare; no filesystem, schema or compatibility validation. |
| Reports openswmm::CheckpointInspection::binary |
| uint64_t openswmm::CheckpointInspection::checkpoint_bytes = 0 |
| std::vector<Companion> openswmm::CheckpointInspection::companions |
| std::optional<double> openswmm::CheckpointInspection::completed_source_seconds |
| bool openswmm::CheckpointInspection::detailed_sources = false |
| std::optional<Driver> openswmm::CheckpointInspection::driver |
| double openswmm::CheckpointInspection::engine_date = 0 |
| double openswmm::CheckpointInspection::engine_seconds = 0 |
| bool openswmm::CheckpointInspection::file_outputs = false |
| Reports openswmm::CheckpointInspection::mesh |
| double openswmm::CheckpointInspection::next_report_seconds = 0 |
| bool openswmm::CheckpointInspection::relocatable_bundle = false |
| double openswmm::CheckpointInspection::report_start_date = 0 |
| uint32_t openswmm::CheckpointInspection::schema_version = 1 |
| uint64_t openswmm::CheckpointInspection::source_frames = 0 |
| uint64_t openswmm::CheckpointInspection::source_prefix_bytes = 0 |
| double openswmm::CheckpointInspection::start_date = 0 |