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;
T * as() noexcept
Definition: rulecheckmessage.h:70
bool operator!=(const RuleCheckMessage &rhs) const noexcept
Definition: rulecheckmessage.cpp:114
RuleCheckMessage()=delete
Definition: occmodel.cpp:77
bool operator==(const RuleCheckMessage &rhs) const noexcept
Definition: rulecheckmessage.cpp:106
QString mMessage
Definition: rulecheckmessage.h:98
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104
QString mDescription
Definition: rulecheckmessage.h:99
Severity getSeverity() const noexcept
Definition: rulecheckmessage.h:60
virtual ~RuleCheckMessage() noexcept
Definition: rulecheckmessage.cpp:54
QString getSeverityTr() const noexcept
Definition: rulecheckmessage.cpp:57
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
const QString & getDescription() const noexcept
Definition: rulecheckmessage.h:64
Severity
Message severity type (higher number = higher severity)
Definition: rulecheckmessage.h:50
Severity mSeverity
Definition: rulecheckmessage.h:97
const QString & getMessage() const noexcept
Definition: rulecheckmessage.h:63
std::unique_ptr< SExpression > mApproval
Definition: rulecheckmessage.h:100
const SExpression & getApproval() const noexcept
Definition: rulecheckmessage.h:65
const QVector< Path > & getLocations() const noexcept
Definition: rulecheckmessage.h:66
The RuleCheckMessage class.
Definition: rulecheckmessage.h:45
const T * as() const noexcept
Definition: rulecheckmessage.h:74
QVector< Path > mLocations
Definition: rulecheckmessage.h:101
The SExpression class.
Definition: sexpression.h:69