24 item.second->copyValuesBack();
27 const std::map<std::string, std::unique_ptr<ChainControlDataBase>> &
36 std::string map_str =
"Chain control data:\n";
39 map_str += item.first +
" (" + item.second->type() +
") declared? " +
40 (item.second->getDeclared() ?
"true" :
"false");
42 map_str +=
". Current value: " + std::to_string(ctl_real->get());
44 map_str +=
". Current value: " + std::to_string(ctl_bool->get());
46 mooseWarning(
"Chain control data output has not been enabled for this this data type: ",
ChainControlDataSystem(MooseApp &app)
void mooseWarning(Args &&... args)
Emit a warning message with the given stringified, concatenated args.
Base class for MOOSE-based applications.
void copyValuesBack()
Copies current chain control data values into old values.
std::map< std::string, std::unique_ptr< ChainControlDataBase > > _chain_control_data_map
Map of chain control data name to its value.
bool hasChainControlData(const std::string &data_name) const
Queries if the chain control data of the given name exists.
std::string outputChainControlMap() const
Output the chain control map to a string.
const std::map< std::string, std::unique_ptr< ChainControlDataBase > > & getChainControlDataMap() const
Gets the map of ChainControlData names to the relevant ChainControlDataBase.