14 : m_severity(severity), m_msgText(text.trimmed()), m_category(category.trimmed())
18 m_msgText.isEmpty() && m_category.isEmpty());
32 if (!msg.isSeverityHigherOrEqual(this->m_severity))
38 if (!this->m_msgText.isEmpty())
46 if (!this->m_category.isEmpty())
62 if (!m_category.contains(
'*'))
CStatusMessageFilter(swift::misc::CStatusMessage::StatusSeverity severity, const QString &text, const QString &category)
Constructor.
swift::misc::CVariant getAsValueObject() const
Return an implementation-specific value object representing the filter.
swift::misc::CStatusMessageList filter(const swift::misc::CStatusMessageList &inContainer) const
Used container data.
bool stringMatchesFilterExpression(const QString &value, const QString &filter, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const
static const QStringList & allSpecialCategories()
All predefined special categories.
A log category is an arbitrary string tag which can be attached to log messages.
A sequence of log categories.
static CLogCategoryList fromQStringList(const QStringList &stringList)
Convert a string list, such as that returned by toQStringList(), into a CLogCategoryList.
QSet< QString > getCategoryStrings() const
Technical category names matched by this pattern.
static QStringList humanOrTechnicalCategoriesFrom(const CStatusMessage &message)
Human or machine readable categories of message.
static const CLogPattern & fromHumanReadableName(const QString &name)
Return a predefined CLogPattern corresponding to the given human-readable name.
static const QStringList & allHumanReadableNames()
Get a list of human-readable names of predefined log patterns.
static CLogPattern exactMatch(const CLogCategory &category)
Returns a CLogPattern which will match any message with the given category.
static CLogPattern anyOf(const CLogCategoryList &categories)
Returns a CLogPattern which will match any message with any of the given categories.
auto transform(F function) const
Return a new container generated by applying some transformation function to all elements of this one...
Generic sequential container with value semantics.
int removeIf(Predicate p)
Remove elements for which a given predicate returns true.
void push_back(const T &value)
Appends an element at the end of the sequence.
CSequence join(const CSequence &other) const
Concatenates two sequences and returns the result.
Streamable status message, e.g.
static constexpr auto SeverityInfo
Status severities.
swift::misc::StatusSeverity StatusSeverity
Status severities.
static constexpr auto SeverityDebug
Status severities.
Status messages, e.g. from Core -> GUI.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
static CVariant fromValue(T &&value)
Construct a variant from a value.
QString toQString(bool i18n=false) const
Cast as QString.
Models to be used with views, mainly QTableView.
Free functions in swift::misc.
bool isEmpty() const const
QString::iterator begin()