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

Section handlers for spatial sections: [MAP], [VERTICES], [POLYGONS]. More...

#include <vector>
#include <string>
Include dependency graph for SpatialHandler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openswmm
 
namespace  openswmm::input
 

Functions

void openswmm::input::handle_map (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [MAP] — fills spatial.map_x1/y1/x2/y2 and map_units.
 
void openswmm::input::handle_vertices (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [VERTICES] — fills spatial.link_vertices_x/y.
 
void openswmm::input::handle_polygons (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [POLYGONS] — fills spatial.subcatch_polygon_x/y.
 
void openswmm::input::handle_symbols (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [SYMBOLS] — fills spatial.gage_x/y.
 
void openswmm::input::handle_tags (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [TAGS] — writes per-index tags onto ctx.nodes.tags / ctx.links.tags / ctx.subcatches.tags (resolves name → idx via the matching NameIndex; unresolved lines are skipped).
 

Detailed Description

Section handlers for spatial sections: [MAP], [VERTICES], [POLYGONS].

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