https://mooseframework.inl.gov
MooseObjectAction.h
Go to the documentation of this file.
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 
14 #include <string>
15 
16 class MooseObjectAction : public Action
17 {
18 public:
20 
21  MooseObjectAction(const InputParameters & params);
22 
24  virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override;
25 
30 
35 
39  const std::string & getMooseObjectType() const { return _type; }
40 
41 protected:
43  std::string _type;
44 
47 };
RelationshipManagerType
Main types of Relationship Managers.
Definition: MooseTypes.h:963
static InputParameters validParams()
const InputParameters & getObjectParams() const
Constant version of retrieving 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:33
MooseObjectAction(const InputParameters &params)
InputParameters & getObjectParams()
Retrieve the parameters of the object to be created by this action.
virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override
Method to add a relationship manager for the objects being added to the system.
const std::string & getMooseObjectType() const
Return the object type to be created.
std::string _type
The Object type that is being created.
InputParameters _moose_object_pars
The parameters for the object to be created.
bool 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:136