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

Internal C++ API for in-place node and link type conversion. More...

#include "../core/SimulationContext.hpp"
#include "../data/NodeData.hpp"
#include "../data/LinkData.hpp"
#include <string>
#include <vector>
Include dependency graph for TypeConverter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::edit::ConversionResult
 

Namespaces

namespace  openswmm
 
namespace  openswmm::edit
 

Functions

ConversionResult openswmm::edit::convert_node (SimulationContext &ctx, int idx, NodeType new_type)
 Convert a node in-place to new_type.
 
ConversionResult openswmm::edit::convert_link (SimulationContext &ctx, int idx, LinkType new_type)
 Convert a link in-place to new_type.
 

Detailed Description

Internal C++ API for in-place node and link type conversion.

Provides conversion between node subtypes (JUNCTION/OUTFALL/STORAGE/ DIVIDER) and between link subtypes (CONDUIT/PUMP/ORIFICE/WEIR/OUTLET). Common fields are preserved; type-specific fields are cleared and new-type defaults are applied.

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