22 params.
addParam<std::vector<std::string>>(
"register_objects_from",
23 "The names of other applications from which objects " 24 "will be registered from (dynamic registration).");
25 params.
addParam<std::vector<std::string>>(
26 "object_names",
"The names of the objects to register (Default: register all).");
27 params.
addParam<std::string>(
"library_path",
29 "Path to search for dynamic libraries (please " 30 "avoid committing absolute paths in addition to " 31 "MOOSE_LIBRARY_PATH)");
35 "The file name of the library (*.la file) that will be dynamically loaded.");
53 std::vector<std::string> application_names =
54 getParam<std::vector<std::string>>(
"register_objects_from");
55 for (
const auto & app_name : application_names)
61 getParam<std::string>(
"library_path"),
62 getParam<std::string>(
"library_name"));
static InputParameters validParams()
void restrictRegisterableObjects(const std::vector< std::string > &names)
Calling this object with a non-empty vector will cause this factory to ignore registrations from any ...
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
registerMooseAction("MooseApp", DynamicObjectRegistrationAction, "dynamic_object_registration")
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
Factory & _factory
The Factory associated with the MooseApp.
static InputParameters validParams()
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
MooseApp & _app
The MOOSE application this is associated with.
ActionFactory & _action_factory
Builds Actions.
DynamicObjectRegistrationAction(const InputParameters ¶meters)
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
void dynamicAllRegistration(const std::string &app_name, Factory *factory, ActionFactory *action_factory, Syntax *syntax, std::string library_path, const std::string &library_name)
Thes methods are called to register applications or objects on demand.