23 params.
addParam<std::vector<OutputName>>(
"outputs",
24 "Vector of output names where you would like " 25 "to restrict the output of variables(s) " 26 "associated with this object");
29 std::set<std::string> reserved = {
"all",
"none"};
36 : _oi_moose_app(*parameters.getCheckedPointerParam<
MooseApp *>(
"_moose_app")),
37 _oi_output_warehouse(_oi_moose_app.getOutputWarehouse()),
38 _oi_outputs(parameters.
get<
std::vector<OutputName>>(
"outputs").begin(),
39 parameters.
get<
std::vector<OutputName>>(
"outputs").end())
54 std::set<std::string> names_set;
55 names_set.insert(parameters.
get<std::string>(
"_object_name"));
68 for (
const auto &
name : avail)
80 std::set<OutputName> hide;
81 std::set_difference(avail.begin(),
85 std::inserter(hide, hide.begin()));
88 for (
const auto &
name : hide)
93 const std::set<OutputName> &
std::string name(const ElemQuality q)
OutputWarehouse & _oi_output_warehouse
Reference to the OutputWarehouse for populating the Output object hide lists.
static InputParameters validParams()
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
Base class for MOOSE-based applications.
OutputInterface(const InputParameters ¶meters, bool build_list=true)
Handles 'outputs' parameter for objects that desire control of variable outputs.
std::set< OutputName > _oi_outputs
The set of Output object names listed in the 'outputs' parameter.
void buildOutputHideVariableList(std::set< std::string > variable_names)
Builds hide lists for output objects NOT listed in the 'outputs' parameter.
const std::set< OutputName > & getOutputNames()
Get a complete set of all output object names.
void addInterfaceHideVariables(const std::string &output_name, const std::set< std::string > &variable_names)
Insert variable names for hiding via the OutoutInterface.
const std::set< OutputName > & getOutputs()
Get the list of output objects that this class is restricted.