ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_FloodEngineRegistry.cpp File Reference
Include dependency graph for ERF_FloodEngineRegistry.cpp:

Typedefs

using FloodRegistry = SurfaceEngineRegistry< FloodEngine, FloodCouplingParams >
 

Functions

bool register_flood_engine (const std::string &name, FloodEngineCreator creator)
 Add an engine to the registry; aborts on a name registered twice. More...
 
std::vector< std::string > flood_engine_names ()
 Names erf.flood.engine accepts, sorted; empty when no engine is compiled in. More...
 
std::unique_ptr< FloodEngine > make_flood_engine (const std::string &name, const FloodCouplingParams &params)
 The engine erf.flood.engine names, or nullptr when no engine has that name. More...
 

Typedef Documentation

◆ FloodRegistry

Function Documentation

◆ flood_engine_names()

std::vector<std::string> flood_engine_names ( )

Names erf.flood.engine accepts, sorted; empty when no engine is compiled in.

16 {
17  return FloodRegistry::names();
18 }
static std::vector< std::string > names()
The registered names, sorted.
Definition: ERF_SurfaceEngineRegistry.H:49

Referenced by FloodCouplingParams::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_flood_engine()

std::unique_ptr<FloodEngine> make_flood_engine ( const std::string &  name,
const FloodCouplingParams &  params 
)

The engine erf.flood.engine names, or nullptr when no engine has that name.

22 {
23  return FloodRegistry::make(name, params);
24 }
std::string name
Definition: ERF_Plotfile2DCatalog.cpp:139
static std::unique_ptr< Engine > make(const std::string &name, const Params &params)
The engine registered under name, or nullptr.
Definition: ERF_SurfaceEngineRegistry.H:57

Referenced by ERF::initializeFlood().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ register_flood_engine()

bool register_flood_engine ( const std::string &  name,
FloodEngineCreator  creator 
)

Add an engine to the registry; aborts on a name registered twice.

Called by ERF_REGISTER_FLOOD_ENGINE; returns true so the macro can hold the result in a static variable.

10 {
11  return FloodRegistry::add(flood_coupling_names(), name, std::move(creator));
12 }
const SurfaceCouplingNames & flood_coupling_names()
The flood coupling's names: erf.flood.<key>, "[FLOOD]", "flood grid".
Definition: ERF_FloodGrid.H:26
static bool add(const SurfaceCouplingNames &names, const std::string &name, Creator creator)
Add an engine; aborts on an empty name or a name registered twice.
Definition: ERF_SurfaceEngineRegistry.H:33
Here is the call graph for this function: