15 std::string
const& internal_name, std::string
const& external_name)
21 "Secondary variable names must be unique.");
28 .emplace(std::make_pair(
35 "The secondary variable with internal name `%s' has already been " 37 internal_name.c_str());
41 std::map<std::string, std::string>::const_iterator
47 std::map<std::string, std::string>::const_iterator
54 std::string
const& external_name)
const 61 "A secondary variable with external name '%s' has not been set up.",
62 external_name.c_str());
65 auto const& internal_name = it->second;
71 "A secondary variable with internal name '%s' has not been set up.",
72 internal_name.c_str());
std::map< std::string, std::string >::const_iterator end() const
std::map< std::string, std::string > _map_external_to_internal
Stores information about a specific secondary variable.
void addNameMapping(std::string const &internal_name, std::string const &external_name)
Register a variable with the given internal and external names.
std::map< std::string, std::string >::const_iterator begin() const
SecondaryVariable const & get(std::string const &external_name) const
Returns the secondary variable with the given external name.
void insertIfKeyUniqueElseError(Map &map, Key const &key, Value &&value, std::string const &error_message)
#define OGS_FATAL(fmt,...)
void addSecondaryVariable(std::string const &internal_name, SecondaryVariableFunctions &&fcts)
std::map< std::string, SecondaryVariable > _configured_secondary_variables