OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
PostParseResolver.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2//
3// Copyright 2026 Caleb Buahin
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
40
41#ifndef OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP
42#define OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP
43
44#include <string>
45
46namespace openswmm {
47 struct SimulationContext;
48}
49
50namespace openswmm::input {
51
61void resolve_cross_references(SimulationContext& ctx);
62
76void load_external_rain_files(SimulationContext& ctx);
77
98void convert_internal_to_display(SimulationContext& ctx);
99
105bool needs_authored_conversion(const SimulationContext& ctx);
106
113int restore_authored_orientation(SimulationContext& ctx);
114
126void convert_internal_to_authored(SimulationContext& ctx);
127
154void resolve_external_file_slots(SimulationContext& ctx,
155 const std::string& anchor_dir);
156
176void recompute_conduit_flow_properties(SimulationContext& ctx, int j);
177
178} /* namespace openswmm::input */
179
180#endif /* OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP */
Definition CatchmentHandler.cpp:69
void resolve_external_file_slots(SimulationContext &ctx, const std::string &anchor_dir)
Slice IO-3: Resolve every external-file slot's .original token against an anchor directory and popula...
Definition PostParseResolver.cpp:111
void recompute_conduit_flow_properties(SimulationContext &ctx, int j)
Recompute a single conduit's derived dynamic-wave flow properties.
Definition PostParseResolver.cpp:687
void resolve_cross_references(SimulationContext &ctx)
Resolve all cross-references in ctx after all sections are parsed.
Definition PostParseResolver.cpp:1404
void convert_internal_to_display(SimulationContext &ctx)
Convert the input fields the reader scaled to internal units back to display units (matching ctx....
Definition PostParseResolver.cpp:955
int restore_authored_orientation(SimulationContext &ctx)
Undo the parse-time adverse-slope reversal on every conduit with direction == -1 (node1/node2,...
Definition PostParseResolver.cpp:1104
void convert_internal_to_authored(SimulationContext &ctx)
Restore authored link data for writing: un-reverse adverse-slope conduits (node1/node2,...
Definition PostParseResolver.cpp:1126
bool needs_authored_conversion(const SimulationContext &ctx)
True when the context holds parse-time normalisations that the .inp writer must undo: LINK_OFFSETS=EL...
Definition PostParseResolver.cpp:1093
void load_external_rain_files(SimulationContext &ctx)
(Re)load every FILE-source rain gage's data from disk.
Definition PostParseResolver.cpp:678
Definition NodeCoupling.cpp:16
Central, reentrant simulation context.
Definition SimulationContext.hpp:353