18 const std::string & param)
25 const std::string & name,
26 const std::string & param,
27 const std::string & separator)
34 :
MooseObjectName(rhs._tag, rhs._name, rhs._separator), _parameter(rhs._parameter)
42 std::size_t idx =
name.find(
"::");
43 if (idx != std::string::npos)
46 name.erase(0, idx + 2);
51 idx =
name.rfind(
"/");
52 if (idx != std::string::npos)
64 idx =
name.rfind(
"/");
65 if (idx != std::string::npos)
83 if (MooseObjectName::operator==(rhs) &&
98 return !(*
this == rhs);
116 if (obj.
_tag.empty() && obj.
_name.empty())
118 else if (obj.
_tag.empty())
120 else if (obj.
_name.empty())
131 mooseError(
"The supplied parameter name cannot be empty, to allow for any parameter name to be "
132 "supplied use the '*' character.");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
std::ostream & operator<<(std::ostream &stream, const MooseObjectParameterName &obj)
A class for storing the names of MooseObject by tag and object name.
bool operator==(const MooseObjectName &rhs) const
Comparison operators.
const std::string & name() const
Return the name.
bool operator!=(const MooseObjectName &rhs) const
virtual void check()
Check that the name and tag are supplied correctly.
A class for storing an input parameter name.
bool operator==(const MooseObjectParameterName &rhs) const
Comparison operators.
MooseObjectParameterName(std::string name)
Build an object given a raw parameter name (e.g., from an input file parameter)
bool operator<(const MooseObjectParameterName &rhs) const
virtual void check() final
Adds the parameter name to error checking.
std::string _parameter
The name of the input parameter.
bool operator!=(const MooseObjectParameterName &rhs) const