21#ifndef KICAD_DRC_EXCLUSION_H
22#define KICAD_DRC_EXCLUSION_H
25#include <nlohmann/json_fwd.hpp>
52 const kiapi::board::DrcExclusion&
ToProto()
const;
Container for an DRC exclusion, which is a PCB_MARKER plus an optional comment.
DRC_EXCLUSION & operator=(const DRC_EXCLUSION &aOther)
static DRC_EXCLUSION FromLegacyStrings(const wxString &aMarkerData, const wxString &aComment)
void SetComment(const wxString &aComment)
friend bool operator!=(const DRC_EXCLUSION &a, const DRC_EXCLUSION &b)
std::string GetSortKey() const
static DRC_EXCLUSION FromProto(const kiapi::board::DrcExclusion &aMessage)
std::unique_ptr< IMPL > m_impl
friend void to_json(nlohmann::json &aJson, const DRC_EXCLUSION &aEx)
wxString GetComment() const
friend void from_json(const nlohmann::json &aJson, DRC_EXCLUSION &aEx)
static DRC_EXCLUSION FromMarker(const PCB_MARKER &aMarker)
const kiapi::board::DrcExclusion & ToProto() const
friend bool operator==(const DRC_EXCLUSION &a, const DRC_EXCLUSION &b)
void to_json(nlohmann::json &aJson, const DRC_EXCLUSION &aEx)
void from_json(const nlohmann::json &aJson, DRC_EXCLUSION &aEx)
bool operator()(const DRC_EXCLUSION &a, const DRC_EXCLUSION &b) const