21 auto sec_vars_config =
32 sec_vars_config->getConfigSubtreeList(
"secondary_variable"))
36 sec_var_config.getConfigAttributeOptional<std::string>(
"type");
40 "Secondary variable type specification is deprecated and is "
41 "ignored. All secondary variable types are 'static'.");
44 auto const internal_name =
46 sec_var_config.getConfigAttribute<std::string>(
"internal_name");
47 auto const output_name =
49 sec_var_config.getConfigAttribute<std::string>(
"output_name");
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
std::optional< ConfigTree > getConfigSubtreeOptional(std::string const &root) const
Handles configuration of several secondary variables from the project file.
void addNameMapping(std::string const &internal_name, std::string const &external_name)
Register a variable with the given internal and external names.
void createSecondaryVariables(BaseLib::ConfigTree const &config, SecondaryVariableCollection &secondary_variables)