Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "Action.h" 13 : #include <string> 14 : 15 : /** 16 : * Action for creating component actions. 17 : */ 18 : class AddActionComponentAction : public Action 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : AddActionComponentAction(const InputParameters & params); 24 : 25 : virtual void act() override; 26 : 27 : /// Adds relationship managers, in case there are known mesh complexities to handle 28 : /// in parallel 29 : using Action::addRelationshipManagers; 30 : virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override; 31 : 32 : /// Return the parameters of the component 33 184 : InputParameters & getComponentParams() { return _component_params; } 34 : 35 : private: 36 : /// The Component type that is being created 37 : std::string _component_type; 38 : 39 : /// The parameters for the component to be created 40 : InputParameters _component_params; 41 : };