34 template <
typename... Args>
37 std::ostringstream oss;
Keeps the error and warning messages.
void mooseStreamAll(std::ostringstream &ss)
void emitLoggedErrors() const
Calls mooseError if there are any logged errors.
unsigned int getNumberOfWarnings() const
Return the number of warnings.
unsigned int _n_errors
The number of errors.
Simple data structure to hold the messages.
EMessageType _type
The type of the message.
void emitLoggedWarnings() const
Calls mooseWarning if there are any logged warnings.
Message(EMessageType type, const std::string &msg)
std::vector< Message * > _msgs
The list of logged messages.
unsigned int getNumberOfErrors() const
Return the number of errors.
std::string _msg
The text of the message.
void add(EMessageType type, Args &&... args)
Add a message to the log.
unsigned int _n_warnings
The number of warnings.