https://mooseframework.inl.gov
include
userobjects
MessageFromInput.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 "
GeneralUserObject.h
"
13
18
class
MessageFromInput
:
public
GeneralUserObject
19
{
20
public
:
21
static
InputParameters
validParams
();
22
23
MessageFromInput
(
const
InputParameters
&
parameters
);
24
virtual
~MessageFromInput
();
25
27
virtual
void
initialize
()
override
{};
28
30
virtual
void
finalize
()
override
{};
31
33
virtual
void
execute
()
override
;
34
35
private
:
37
const
std::string
_input_message
;
38
};
MessageFromInput::_input_message
const std::string _input_message
hold the message from the input file
Definition:
MessageFromInput.h:37
MessageFromInput
User object that get a message from an input file and print it out during the simulation.
Definition:
MessageFromInput.h:18
GeneralUserObject.h
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
MessageFromInput::finalize
virtual void finalize() override
Required implementation of a pure virtual function (not used)
Definition:
MessageFromInput.h:30
MessageFromInput::MessageFromInput
MessageFromInput(const InputParameters ¶meters)
Definition:
MessageFromInput.C:33
MessageFromInput::execute
virtual void execute() override
Print out the message.
Definition:
MessageFromInput.C:41
MessageFromInput::initialize
virtual void initialize() override
Required implementation of a pure virtual function (not used)
Definition:
MessageFromInput.h:27
MessageFromInput::validParams
static InputParameters validParams()
Definition:
MessageFromInput.C:17
MessageFromInput::~MessageFromInput
virtual ~MessageFromInput()
Definition:
MessageFromInput.C:38
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
GeneralUserObject
Definition:
GeneralUserObject.h:22
Generated on Sat Aug 2 2025 20:05:22 for https://mooseframework.inl.gov by
1.8.14