Issue #15 Classes for sharing the history of log messages

This commit is contained in:
Mat Sutcliffe
2020-04-15 18:18:43 +01:00
parent 151810d6fc
commit 7382564633
7 changed files with 144 additions and 1 deletions

View File

@@ -93,6 +93,9 @@ namespace BlackMisc
//! Returns true if the given message matches this pattern.
bool match(const CStatusMessage &message) const;
//! This class acts as a SharedState filter when stored in a CVariant.
bool matches(const CVariant &message) const { return match(message.to<CStatusMessage>()); }
//! Returns true if this pattern is a proper subset of the other pattern.
//! \see https://en.wikipedia.org/wiki/Proper_subset
//! \details Pattern A is a proper subset of pattern B iff pattern B would match every category which pattern A matches,