OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
ProcessComponentRegistry.cpp File Reference

Registry + config-file delivery for [PROCESS_COMPONENTS] — IO1–IO2. More...

#include "ProcessComponentRegistry.hpp"
#include <algorithm>
#include <cctype>
#include <filesystem>
#include <fstream>
#include <sstream>
#include "../core/SimulationContext.hpp"
Include dependency graph for ProcessComponentRegistry.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::components
 

Functions

std::string openswmm::components::parse_component_config_stream (std::istream &in, const std::string &label, ComponentConfigSections &out)
 
std::string openswmm::components::parse_component_config_text (const std::string &text, const std::string &label, ComponentConfigSections &out)
 
std::string openswmm::components::read_component_config (const std::string &path, const std::string &base_dir, ComponentConfigSections &out)
 Parse a component configuration file (phase IO2).
 
std::vector< std::string > openswmm::components::resolve_process_components (SimulationContext &ctx, const std::string &base_dir)
 Resolve every [PROCESS_COMPONENTS] spec (phase IO1): look up the id, read its config file, and invoke the apply hook.
 

Detailed Description

Registry + config-file delivery for [PROCESS_COMPONENTS] — IO1–IO2.

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