21#ifndef KICAD_ERC_EXCLUSION_H
22#define KICAD_ERC_EXCLUSION_H
25#include <nlohmann/json_fwd.hpp>
53 const wxString& aComment );
55 const kiapi::schematic::ErcExclusion&
ToProto()
const;
Container for an ERC exclusion, which is a SCH_MARKER plus an optional comment.
static ERC_EXCLUSION FromLegacyStrings(const SCH_SHEET_LIST &aSheetList, const wxString &aMarkerData, const wxString &aComment)
ERC_EXCLUSION & operator=(const ERC_EXCLUSION &aOther)
friend void from_json(const nlohmann::json &aJson, ERC_EXCLUSION &aEx)
std::unique_ptr< IMPL > m_impl
const kiapi::schematic::ErcExclusion & ToProto() const
void SetComment(const wxString &aComment)
static ERC_EXCLUSION FromMarker(const SCH_MARKER &aMarker)
wxString GetComment() const
friend void to_json(nlohmann::json &aJson, const ERC_EXCLUSION &aEx)
friend bool operator!=(const ERC_EXCLUSION &a, const ERC_EXCLUSION &b)
std::string GetSortKey() const
static ERC_EXCLUSION FromProto(const kiapi::schematic::ErcExclusion &aMessage)
friend bool operator==(const ERC_EXCLUSION &a, const ERC_EXCLUSION &b)
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
void from_json(const nlohmann::json &aJson, ERC_EXCLUSION &aEx)
void to_json(nlohmann::json &aJson, const ERC_EXCLUSION &aEx)
bool operator()(const ERC_EXCLUSION &a, const ERC_EXCLUSION &b) const