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 "core/FileIO.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)
 Append parsed bracketed sections from the current stream position.
 
std::string openswmm::components::parse_component_config_text (const std::string &text, const std::string &label, ComponentConfigSections &out)
 Parse component configuration text using the same section/comment rules as files.
 
std::string openswmm::components::read_component_config (const std::string &path, const std::string &base_dir, ComponentConfigSections &out)
 Clear sections, resolve a UTF-8 config path and parse the component dialect.
 
std::vector< std::string > openswmm::components::resolve_process_components (SimulationContext &ctx, const std::string &base_dir)
 Validate specs, parse each config and apply implemented builtin hooks in order.
 

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
Apache-2.0