17 #define usingMooseBaseMembers \ 18 using MooseBase::getMooseApp; \ 19 using MooseBase::type; \ 20 using MooseBase::name; \ 21 using MooseBase::typeAndName; \ 22 using MooseBase::_type; \ 23 using MooseBase::_app; \ 24 using MooseBase::_name 36 const std::string &
name,
57 virtual const std::string &
name()
const {
return _name; }
70 std::string
errorPrefix(
const std::string & error_type)
const;
80 [[noreturn]]
void callMooseError(std::string msg,
const bool with_prefix)
const;
Base class for everything in MOOSE with a name and a type.
Base class for MOOSE-based applications.
virtual const std::string & name() const
Get the name of the class.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
std::string errorPrefix(const std::string &error_type) const
const std::string _type
The type of this class.
const InputParameters & _params
The object's parameteres.
const std::string & type() const
Get the type of this class.
std::string typeAndName() const
Get the class's combined type and name; useful in error handling.
MooseApp & _app
The MOOSE application this is associated with.
const std::string _name
The name of this class.
MooseBase(const std::string &type, const std::string &name, MooseApp &app, const InputParameters ¶ms)
void callMooseError(std::string msg, const bool with_prefix) const
Calls moose error with the message msg.
virtual ~MooseBase()=default