|
KiCad PCB EDA Suite
|
Frame-independent, non-interactive service that rewrites the library nickname of every schematic symbol Footprint-field FPID after a non-KiCad import so it resolves to the coordinated project library. More...
#include <sch_footprint_field_reconciler.h>
Public Member Functions | |
| SCH_FOOTPRINT_FIELD_RECONCILER (const wxString &aCacheNickname, const std::vector< wxString > &aSourceLibNicknames, REPORTER *aReporter=nullptr) | |
| SCH_FP_FIELD_RECONCILE_RESULT | Reconcile (SCHEMATIC &aSchematic) |
Private Attributes | |
| wxString | m_cacheNickname |
| std::set< wxString > | m_sourceLibs |
| REPORTER * | m_reporter |
Frame-independent, non-interactive service that rewrites the library nickname of every schematic symbol Footprint-field FPID after a non-KiCad import so it resolves to the coordinated project library.
A field already pointing at a registered provenance source library is kept; every other field is re-pointed at the manager-committed generated cache nickname, preserving the item name.
Definition at line 42 of file sch_footprint_field_reconciler.h.
| SCH_FOOTPRINT_FIELD_RECONCILER::SCH_FOOTPRINT_FIELD_RECONCILER | ( | const wxString & | aCacheNickname, |
| const std::vector< wxString > & | aSourceLibNicknames, | ||
| REPORTER * | aReporter = nullptr ) |
Definition at line 29 of file sch_footprint_field_reconciler.cpp.
References end, m_cacheNickname, m_reporter, and m_sourceLibs.
| SCH_FP_FIELD_RECONCILE_RESULT SCH_FOOTPRINT_FIELD_RECONCILER::Reconcile | ( | SCHEMATIC & | aSchematic | ) |
Definition at line 39 of file sch_footprint_field_reconciler.cpp.
References _, FOOTPRINT, LIB_ID::Format(), SCH_SYMBOL::GetField(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), SCH_FIELD::GetText(), LIB_ID::GetUniStringLibItemName(), LIB_ID::GetUniStringLibNickname(), m_cacheNickname, m_reporter, m_sourceLibs, LIB_ID::Parse(), result, SCHEMATIC::Root(), RPT_SEVERITY_INFO, SCH_SYMBOL_T, SCH_SYMBOL::SetFootprintFieldText(), LIB_ID::SetLibNickname(), and UTF8::wx_str().
Referenced by SCH_EDIT_FRAME::importFile().
|
private |
Definition at line 52 of file sch_footprint_field_reconciler.h.
Referenced by Reconcile(), and SCH_FOOTPRINT_FIELD_RECONCILER().
|
private |
Definition at line 54 of file sch_footprint_field_reconciler.h.
Referenced by Reconcile(), and SCH_FOOTPRINT_FIELD_RECONCILER().
|
private |
Definition at line 53 of file sch_footprint_field_reconciler.h.
Referenced by Reconcile(), and SCH_FOOTPRINT_FIELD_RECONCILER().