www.mooseframework.org
MooseObjectAction.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
14 #include <string>
15 
16 class MooseObjectAction;
17 
18 template <>
20 
21 class MooseObjectAction : public Action
22 {
23 public:
25 
27  virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override;
28 
33 
38 
42  const std::string & getMooseObjectType() const { return _type; }
43 
44 protected:
46  std::string _type;
47 
50 };
51 
RelationshipManagerType
Main types of Relationship Managers.
Definition: MooseTypes.h:716
const InputParameters & getObjectParams() const
Constant version of retreiving the parameters of the object to be created by this action...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:35
InputParameters & getObjectParams()
Retreive the parameters of the object to be created by this action.
void addRelationshipManagers(Moose::RelationshipManagerType when_type, const InputParameters &moose_object_pars)
Method to add a relationship manager for the objects being added to the system.
Definition: Action.C:95
virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override
Method to add a relationship manager for the objects being added to the system.
InputParameters validParams< MooseObjectAction >()
const std::string & getMooseObjectType() const
Return the object type to be created.
std::string _type
The Object type that is being created.
MooseObjectAction(InputParameters params)
InputParameters _moose_object_pars
The parameters for the object to be created.