refs #506, utility function for status message

This commit is contained in:
Klaus Basan
2016-12-26 00:38:53 +01:00
committed by Mathew Sutcliffe
parent deed61a88c
commit 24bf0b940f
2 changed files with 10 additions and 2 deletions

View File

@@ -221,6 +221,9 @@ namespace BlackMisc
//! Info or debug, no warning or error
bool isSeverityInfoOrLess() const { return this->m_severity == SeverityInfo || this->m_severity == SeverityDebug; }
//! Is this message's severity higher or equal
bool isSeverityHigherOrEqual(CStatusMessage::StatusSeverity severity) const;
//! Warning or above
bool isWarningOrAbove() const { return this->m_severity == SeverityWarning || this->m_severity == SeverityError; }