22 : _raw_name(other._raw_name), _name(other._name), _id(other._id)
86 mooseError(
"The ID of a MooseEnumItem can not be changed if it is valid, the item ",
88 " has a valid id of ",
std::ostream & operator<<(std::ostream &out, const MooseEnumItem &item)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Class for containing MooseEnum item information.
MooseEnumItem & operator=(const MooseEnumItem &other)
std::string _name
Upper case name.
const std::string & name() const
const int & id() const
Return the numeric, name, or raw name.
bool operator!=(const char *value) const
void setID(const int &id)
Method to change the ID of the item, but only if it is an INVALID_ID.
int _id
The numeric value for item.
bool operator==(const char *value) const
Comparison operators.
std::string _raw_name
The name as provided in constructor.
const std::string & rawName() const
static const int INVALID_ID
std::string toUpper(std::string name)
Convert supplied string to upper case.