https://mooseframework.inl.gov
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 {
20 public:
22 
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 };
const std::string _input_message
hold the message from the input file
User object that get a message from an input file and print it out during the simulation.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void finalize() override
Required implementation of a pure virtual function (not used)
MessageFromInput(const InputParameters &parameters)
virtual void execute() override
Print out the message.
virtual void initialize() override
Required implementation of a pure virtual function (not used)
static InputParameters validParams()
virtual ~MessageFromInput()
const InputParameters & parameters() const
Get the parameters of the object.