https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
17{
18public:
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
41protected:
43 std::string _type;
44
47};
Base class for actions.
Definition Action.h:38
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:148
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
InputParameters _moose_object_pars
The parameters for the object to be created.
static InputParameters validParams()
const std::string & getMooseObjectType() const
Return the object type to be created.
InputParameters & getObjectParams()
Retrieve the parameters of the object to be created by this action.
const InputParameters & getObjectParams() const
Constant version of retrieving the parameters of the object to be created by this action.
std::string _type
The Object type that is being created.
virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override
Method to add a relationship manager for the objects being added to the system.
RelationshipManagerType
Main types of Relationship Managers.