![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Classes | |
| class | CompletedSourceArchive |
Functions | |
| locale_t | c_locale () noexcept |
| Borrow a process-lifetime C numeric locale handle on fallback builds. | |
| bool | checkpointUtf8 (std::string_view text) noexcept |
| Validate a complete byte sequence as UTF-8 scalar encodings. | |
| bool | checkpointNetworkPollutants (const SimulationContext &c) |
| Recognize the supported native LEGACY network-only pollutant checkpoint profile. | |
| void | networkPollutantModel (CompletedSourceArchive &a, const SimulationContext &c) |
| Append native network pollutant configuration to the model fingerprint archive. | |
| bool | checkpointReactionComponents (const SimulationContext &c) |
| Check that all authored process components fit reaction checkpoint restrictions. | |
| void | reactionModel (CompletedSourceArchive &a, const SimulationContext &c) |
| Append authored and resolved reaction/transport/surface configuration to a fingerprint. | |
| void | reactionState (CompletedSourceArchive &a, ReactionData &r) |
| Archive or restore persistent reaction inventories in schema version three. | |
| void | validateReactionState (const ReactionData &r, const SimulationContext &c) |
| Validate staged reaction state shapes, ownership and finite inventories. | |
|
inlinenoexcept |
Borrow a process-lifetime C numeric locale handle on fallback builds.
Function-local static initialization is synchronized by C++; a failed allocation remains cached and fallback parsing then consults the process locale.
|
inline |
Recognize the supported native LEGACY network-only pollutant checkpoint profile.
Qualification predicate only; does not allocate, serialize, verify arbitrary array shapes or validate the current engine boundary.
| [in] | c | Borrowed model options/counts and configured treatment/LID/component state. |
|
inline |
Check that all authored process components fit reaction checkpoint restrictions.
Does not itself require a reaction component to exist or validate current inventories.
| [in] | c | Borrowed component specs and reaction configuration/compiled flags. |
|
noexcept |
Validate a complete byte sequence as UTF-8 scalar encodings.
Does not reject ASCII control characters or impose a normalization policy; JSON quoting escapes controls separately. Allocation-free.
| [in] | text | Borrowed bytes, possibly empty or containing ASCII NUL/control characters. |
|
inline |
Append native network pollutant configuration to the model fingerprint archive.
No-op without nodes/pollutants or with quality ignored. Read-mode deserialization affects local copies only and does not install model data. Native representation and archive size/error rules apply; does not serialize dynamic concentrations or mass-balance state.
| [in,out] | a | Archive expected in writing mode; receives policy, names, pollutant definitions, initial-quality rows and treatment text. |
| [in] | c | Borrowed context copied into local serializable values; original model is unchanged. |
|
inline |
Append authored and resolved reaction/transport/surface configuration to a fingerprint.
No-op when reactions are unconfigured, preserving water-only fingerprints. Read mode would modify local copies only. Does not include dynamic species concentrations or ledgers; serialization/allocations can throw.
| [in,out] | a | Writing archive for copied model configuration; native serialization/budget rules apply. |
| [in] | c | Borrowed model; reaction system text plus transport, surface and land-use parameters are copied. |
|
inline |
Archive or restore persistent reaction inventories in schema version three.
Rejects other versions with runtime_error. No whole-object rollback on read failure and no dimensional/finite validation here; caller decodes into staging state, then calls validateReactionState before installation. Quantities retain their respective concentration-volume, mass and water units.
| [in,out] | a | Native state archive: writing emits fields, reading incrementally replaces them. |
| [in,out] | r | Reaction state whose booster/species/LID/surface inventories and ledgers participate; authored laws/config remain unchanged. |
|
inline |
Validate staged reaction state shapes, ownership and finite inventories.
Throws runtime_error for mismatched shapes, nonfinite checked inventories, invalid LID ownership or selected negative mass/water/booster entries. LID node outlets permit NaN but reject infinity. Some external-load/booster arrays may be absent; inactive surface state expects empty arrays. Does not mutate/repair data or validate every authored reaction law or every concentration sign.
| [in] | r | Borrowed staged state with already validated nonnegative model/species dimension counts. |
| [in] | c | Compatible initialized model defining node/link/catchment/storage/LID ownership dimensions. |