https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
19{
20public:
22
24 virtual ~MessageFromInput();
25
27 virtual void initialize() override {};
28
30 virtual void finalize() override {};
31
33 virtual void execute() override;
34
35private:
37 const std::string _input_message;
38};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
User object that get a message from an input file and print it out during the simulation.
virtual ~MessageFromInput()
static InputParameters validParams()
virtual void finalize() override
Required implementation of a pure virtual function (not used)
virtual void initialize() override
Required implementation of a pure virtual function (not used)
virtual void execute() override
Print out the message.
const std::string _input_message
hold the message from the input file
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131