OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::components::ProcessComponentRegistry Class Reference

Process-global id → entry table. More...

#include <ProcessComponentRegistry.hpp>

Collaboration diagram for openswmm::components::ProcessComponentRegistry:

Public Member Functions

void register_component (const std::string &id, std::string description, ComponentConfigApply apply, ComponentConfigSave save=nullptr)
 
const ProcessComponentEntryfind (const std::string &id) const
 
std::vector< std::string > known_ids () const
 

Static Public Member Functions

static ProcessComponentRegistryinstance ()
 

Detailed Description

Process-global id → entry table.

Planned built-in ids are pre-seeded (see the .cpp); implemented components overwrite their entry via register_component() at engine static-init or test setup. Not thread-safe for registration (register at startup only).

Member Function Documentation

◆ find()

const ProcessComponentEntry * openswmm::components::ProcessComponentRegistry::find ( const std::string & id) const
Here is the caller graph for this function:

◆ instance()

ProcessComponentRegistry & openswmm::components::ProcessComponentRegistry::instance ( )
static
Here is the caller graph for this function:

◆ known_ids()

std::vector< std::string > openswmm::components::ProcessComponentRegistry::known_ids ( ) const
Here is the caller graph for this function:

◆ register_component()

void openswmm::components::ProcessComponentRegistry::register_component ( const std::string & id,
std::string description,
ComponentConfigApply apply,
ComponentConfigSave save = nullptr )
Parameters
saveIO3a serialization hook; DEFAULTED so every existing registration compiles unchanged and components adopt saving one at a time (a null save falls back to the carry-alongside copy, which is what they do today).
Here is the caller graph for this function:

The documentation for this class was generated from the following files: