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