31 "' is not an available enum item for the " 32 "MultiMooseEnum object, thus it cannot be removed.");
34 mooseError(
"The supplied item '", flag,
"' is a selected item, thus it can not be removed.");
42 std::string doc(
"The list of flag(s) indicating when this object should be executed. For a " 43 "description of each flag, see ");
88 "' is not an available item for the " 89 "ExecFlagEnum object, thus it cannot be set as current.");
virtual void checkDeprecated() const override
Check whether any of the current values are deprecated when called.
ExecFlagEnum & operator+=(const std::initializer_list< ExecFlagType > &flags)
A MultiMooseEnum object to hold "execute_on" flags.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
void addAvailableFlags(const ExecFlagType &flag, Args... flags)
Add additional execute_on flags to the list of possible flags.
std::string mooseDocsURL(const std::string &path)
Returns the URL of a page located on the MOOSE documentation site.
ExecFlagEnum & operator=(const ExecFlagEnum &other)=default
std::string getDocString() const
Generate a documentation string for the "execute_on" parameter.
const MooseEnumItem & addEnumerationItem(const MooseEnumItem &item)
bool isValueSet(const std::string &value) const
Methods for seeing if a value is set in the MultiMooseEnum.
std::set< MooseEnumItem > _items
Storage for the assigned items.
void appendCurrent(const ExecFlagType &item)
Append the list of current flags.
Class for containing MooseEnum item information.
void removeAvailableFlags(const ExecFlagType &flag, Args... flags)
Remove flags from being available.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
std::vector< MooseEnumItem > _current_values
The current value(s) of the MultiMooseEnum.
std::set< MooseEnumItem >::const_iterator find(const MooseEnumItem &other) const
Locate an item.
void clearSetValues()
Clear the MultiMooseEnum.