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
46
namespace
openswmm
{
47
struct
SimulationContext
;
48
}
49
50
namespace
openswmm::input
{
51
61
void
resolve_cross_references
(SimulationContext& ctx);
62
76
void
load_external_rain_files
(SimulationContext& ctx);
77
98
void
convert_internal_to_display
(SimulationContext& ctx);
99
105
bool
needs_authored_conversion
(
const
SimulationContext& ctx);
106
113
int
restore_authored_orientation
(SimulationContext& ctx);
114
126
void
convert_internal_to_authored
(SimulationContext& ctx);
127
154
void
resolve_external_file_slots
(SimulationContext& ctx,
155
const
std::string& anchor_dir);
156
176
void
recompute_conduit_flow_properties
(SimulationContext& ctx,
int
j);
177
178
}
/* namespace openswmm::input */
179
180
#endif
/* OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP */
openswmm::input
Definition
CatchmentHandler.cpp:69
openswmm::input::resolve_external_file_slots
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
openswmm::input::recompute_conduit_flow_properties
void recompute_conduit_flow_properties(SimulationContext &ctx, int j)
Recompute a single conduit's derived dynamic-wave flow properties.
Definition
PostParseResolver.cpp:687
openswmm::input::resolve_cross_references
void resolve_cross_references(SimulationContext &ctx)
Resolve all cross-references in ctx after all sections are parsed.
Definition
PostParseResolver.cpp:1404
openswmm::input::convert_internal_to_display
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
openswmm::input::restore_authored_orientation
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
openswmm::input::convert_internal_to_authored
void convert_internal_to_authored(SimulationContext &ctx)
Restore authored link data for writing: un-reverse adverse-slope conduits (node1/node2,...
Definition
PostParseResolver.cpp:1126
openswmm::input::needs_authored_conversion
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
openswmm::input::load_external_rain_files
void load_external_rain_files(SimulationContext &ctx)
(Re)load every FILE-source rain gage's data from disk.
Definition
PostParseResolver.cpp:678
openswmm
Definition
NodeCoupling.cpp:16
openswmm::SimulationContext
Central, reentrant simulation context.
Definition
SimulationContext.hpp:353
src
engine
input
PostParseResolver.hpp
Generated by
1.13.2