|
KiCad PCB EDA Suite
|
Container for an ERC exclusion, which is a SCH_MARKER plus an optional comment. More...
#include <erc_exclusion.h>
Classes | |
| struct | IMPL |
Public Member Functions | |
| ERC_EXCLUSION () | |
| ERC_EXCLUSION (const ERC_EXCLUSION &aOther) | |
| ERC_EXCLUSION & | operator= (const ERC_EXCLUSION &aOther) |
| ~ERC_EXCLUSION () | |
| const kiapi::schematic::ErcExclusion & | ToProto () const |
| std::string | GetSortKey () const |
| wxString | GetComment () const |
| void | SetComment (const wxString &aComment) |
Static Public Member Functions | |
| static ERC_EXCLUSION | FromMarker (const SCH_MARKER &aMarker) |
| static ERC_EXCLUSION | FromProto (const kiapi::schematic::ErcExclusion &aMessage) |
| static ERC_EXCLUSION | FromLegacyStrings (const SCH_SHEET_LIST &aSheetList, const wxString &aMarkerData, const wxString &aComment) |
Private Attributes | |
| std::unique_ptr< IMPL > | m_impl |
Friends | |
| bool | operator== (const ERC_EXCLUSION &a, const ERC_EXCLUSION &b) |
| bool | operator!= (const ERC_EXCLUSION &a, const ERC_EXCLUSION &b) |
| void | to_json (nlohmann::json &aJson, const ERC_EXCLUSION &aEx) |
| void | from_json (const nlohmann::json &aJson, ERC_EXCLUSION &aEx) |
Container for an ERC exclusion, which is a SCH_MARKER plus an optional comment.
This handles serialization to protobuf for the API and to JSON (via that protobuf) for storage in settings.
Definition at line 42 of file erc_exclusion.h.
| ERC_EXCLUSION::ERC_EXCLUSION | ( | ) |
Definition at line 64 of file erc_exclusion.cpp.
References m_impl.
Referenced by ERC_EXCLUSION(), from_json, FromLegacyStrings(), FromMarker(), FromProto(), operator!=, operator=(), operator==, to_json, and ~ERC_EXCLUSION().
| ERC_EXCLUSION::ERC_EXCLUSION | ( | const ERC_EXCLUSION & | aOther | ) |
Definition at line 67 of file erc_exclusion.cpp.
References ERC_EXCLUSION(), and m_impl.
|
default |
References ERC_EXCLUSION().
|
static |
Definition at line 105 of file erc_exclusion.cpp.
References KIID::AsStdString(), ERC_ITEM::Create(), ERC_EXCLUSION(), ERCE_GENERIC_ERROR, ERCE_GENERIC_WARNING, ERCE_UNRESOLVED_VARIABLE, SCH_MARKER::FromProto(), m_impl, main(), niluuid, kiapi::common::PackSheetPath(), kiapi::common::PackVector2(), schIUScale, SetComment(), and ToProtoEnum().
Referenced by SCHEMATIC::ResolveERCExclusions().
|
static |
Definition at line 82 of file erc_exclusion.cpp.
References canonicalizeExclusion(), ERC_EXCLUSION(), MARKER_BASE::GetComment(), m_impl, SCH_MARKER::Serialize(), and SetComment().
Referenced by SCHEMATIC::RecordERCExclusions(), SCHEMATIC::ResolveERCExclusions(), and SHEETLIST_ERC_ITEMS_PROVIDER::visitMarkers().
|
static |
Definition at line 96 of file erc_exclusion.cpp.
References canonicalizeExclusion(), ERC_EXCLUSION(), and m_impl.
| wxString ERC_EXCLUSION::GetComment | ( | ) | const |
Definition at line 211 of file erc_exclusion.cpp.
References m_impl.
Referenced by SCHEMATIC::ResolveERCExclusions().
| std::string ERC_EXCLUSION::GetSortKey | ( | ) | const |
Definition at line 202 of file erc_exclusion.cpp.
References m_impl.
Referenced by ERC_SETTINGS::ERC_SETTINGS(), ERC_EXCLUSION_COMPARE::operator()(), operator==, and SCHEMATIC::ResolveERCExclusions().
| ERC_EXCLUSION & ERC_EXCLUSION::operator= | ( | const ERC_EXCLUSION & | aOther | ) |
Definition at line 72 of file erc_exclusion.cpp.
References ERC_EXCLUSION(), and m_impl.
| void ERC_EXCLUSION::SetComment | ( | const wxString & | aComment | ) |
Definition at line 217 of file erc_exclusion.cpp.
References m_impl.
Referenced by FromLegacyStrings(), FromMarker(), and SCHEMATIC::ResolveERCExclusions().
| const kiapi::schematic::ErcExclusion & ERC_EXCLUSION::ToProto | ( | ) | const |
Definition at line 170 of file erc_exclusion.cpp.
References m_impl.
Referenced by SCHEMATIC::ClearUnresolvedERCExclusions(), and SCHEMATIC::ResolveERCExclusions().
|
friend |
Definition at line 195 of file erc_exclusion.cpp.
References canonicalizeExclusion(), ERC_EXCLUSION(), and m_impl.
|
friend |
Definition at line 66 of file erc_exclusion.h.
References ERC_EXCLUSION().
|
friend |
Definition at line 61 of file erc_exclusion.h.
References ERC_EXCLUSION(), and GetSortKey().
|
friend |
Definition at line 176 of file erc_exclusion.cpp.
References ERC_EXCLUSION(), and m_impl.
|
private |
Definition at line 73 of file erc_exclusion.h.
Referenced by ERC_EXCLUSION(), ERC_EXCLUSION(), from_json, FromLegacyStrings(), FromMarker(), FromProto(), GetComment(), GetSortKey(), operator=(), SetComment(), to_json, and ToProto().