20#ifndef LIBREPCB_CORE_RULECHECKMESSAGE_H
21#define LIBREPCB_CORE_RULECHECKMESSAGE_H
26#include "../geometry/path.h"
27#include "../serialization/sexpression.h"
71 return dynamic_cast<T*
>(
this);
74 const T*
as() const noexcept {
75 return dynamic_cast<const T*
>(
this);
82 const QVector<std::shared_ptr<const RuleCheckMessage>>&
92 const QString& description,
const QString& approvalName,
93 const QVector<Path>& locations = {})
noexcept;
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition: path.h:58
The RuleCheckMessage class.
Definition: rulecheckmessage.h:45
Severity
Message severity type (higher number = higher severity)
Definition: rulecheckmessage.h:50
bool operator!=(const RuleCheckMessage &rhs) const noexcept
Definition: rulecheckmessage.cpp:114
QString mDescription
Definition: rulecheckmessage.h:99
T * as() noexcept
Definition: rulecheckmessage.h:70
virtual ~RuleCheckMessage() noexcept
Definition: rulecheckmessage.cpp:54
QVector< Path > mLocations
Definition: rulecheckmessage.h:101
const QString & getDescription() const noexcept
Definition: rulecheckmessage.h:64
const T * as() const noexcept
Definition: rulecheckmessage.h:74
QString getSeverityTr() const noexcept
Definition: rulecheckmessage.cpp:57
const QVector< Path > & getLocations() const noexcept
Definition: rulecheckmessage.h:66
bool operator==(const RuleCheckMessage &rhs) const noexcept
Definition: rulecheckmessage.cpp:106
RuleCheckMessage()=delete
const QString & getMessage() const noexcept
Definition: rulecheckmessage.h:63
QString mMessage
Definition: rulecheckmessage.h:98
const QIcon & getSeverityIcon() const noexcept
Definition: rulecheckmessage.cpp:61
static QSet< SExpression > getAllApprovals(const QVector< std::shared_ptr< const RuleCheckMessage > > &messages) noexcept
Definition: rulecheckmessage.cpp:92
Severity getSeverity() const noexcept
Definition: rulecheckmessage.h:60
Severity mSeverity
Definition: rulecheckmessage.h:97
std::unique_ptr< SExpression > mApproval
Definition: rulecheckmessage.h:100
const SExpression & getApproval() const noexcept
Definition: rulecheckmessage.h:65
The SExpression class.
Definition: sexpression.h:69
Definition: occmodel.cpp:77
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104