KiCad PCB EDA Suite
|
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD. More...
#include <pcb_netlist.h>
Public Member Functions | |
NETLIST () | |
bool | IsEmpty () const |
void | Clear () |
Remove all components from the netlist. | |
unsigned | GetCount () const |
COMPONENT * | GetComponent (unsigned aIndex) |
Return the COMPONENT at aIndex. | |
void | AddComponent (COMPONENT *aComponent) |
Add aComponent to the NETLIST. | |
COMPONENT * | GetComponentByReference (const wxString &aReference) |
Return a COMPONENT by aReference. | |
COMPONENT * | GetComponentByPath (const KIID_PATH &aPath) |
Return a COMPONENT by aPath. | |
void | SortByFPID () |
void | SortByReference () |
void | SetFindByTimeStamp (bool aFindByTimeStamp) |
bool | IsFindByTimeStamp () const |
void | SetReplaceFootprints (bool aReplace) |
bool | GetReplaceFootprints () const |
bool | AnyFootprintsLinked () const |
void | Format (const char *aDocName, OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl=0) |
void | FormatCvpcbNetlist (OUTPUTFORMATTER *aOut) |
Private Attributes | |
COMPONENTS | m_components |
bool | m_findByTimeStamp |
bool | m_replaceFootprints |
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD.
Definition at line 240 of file pcb_netlist.h.
|
inline |
Definition at line 243 of file pcb_netlist.h.
void NETLIST::AddComponent | ( | COMPONENT * | aComponent | ) |
Add aComponent to the NETLIST.
Definition at line 162 of file pcb_netlist.cpp.
References m_components.
Referenced by LEGACY_NETLIST_READER::loadComponent(), and KICAD_NETLIST_PARSER::parseComponent().
bool NETLIST::AnyFootprintsLinked | ( | ) | const |
Definition at line 241 of file pcb_netlist.cpp.
References empty(), and m_components.
Referenced by CVPCB_MAINFRAME::readNetListAndFpFiles().
|
inline |
Remove all components from the netlist.
Definition at line 257 of file pcb_netlist.h.
References m_components.
Referenced by CVPCB_MAINFRAME::readSchematicNetlist().
void NETLIST::Format | ( | const char * | aDocName, |
OUTPUTFORMATTER * | aOut, | ||
int | aNestLevel, | ||
int | aCtl = 0 |
||
) |
Definition at line 147 of file pcb_netlist.cpp.
References m_components, and OUTPUTFORMATTER::Print().
Referenced by FormatCvpcbNetlist().
|
inline |
Definition at line 316 of file pcb_netlist.h.
References CTL_FOR_CVPCB, and Format().
Referenced by CVPCB_MAINFRAME::SaveFootprintAssociation().
|
inline |
Return the COMPONENT at aIndex.
aIndex | the index in m_components to fetch. |
Definition at line 270 of file pcb_netlist.h.
References m_components.
Referenced by CVPCB_MAINFRAME::AssociateFootprint(), CVPCB_MAINFRAME::AutomaticFootprintMatching(), TEST_NETLIST_EXPORTER_KICAD_FIXTURE::CompareNetlists(), CVPCB_MAINFRAME::GetComponentIndices(), CVPCB_MAINFRAME::GetSelectedComponent(), PCB_EDIT_FRAME::LoadFootprints(), KICAD_NETLIST_READER::LoadNetlist(), KICAD_NETLIST_PARSER::parseLibPartList(), CVPCB_MAINFRAME::readNetListAndFpFiles(), CVPCB_MAINFRAME::readSchematicNetlist(), CVPCB_MAINFRAME::SendComponentSelectionToSch(), BOARD_NETLIST_UPDATER::testConnectivity(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), BOARD_NETLIST_UPDATER::updateCopperZoneNets(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
Return a COMPONENT by aPath.
Definition at line 185 of file pcb_netlist.cpp.
References m_components.
Referenced by BOARD_NETLIST_UPDATER::UpdateNetlist().
COMPONENT * NETLIST::GetComponentByReference | ( | const wxString & | aReference | ) |
Return a COMPONENT by aReference.
aReference | is the reference designator the COMPONENT. |
Definition at line 168 of file pcb_netlist.cpp.
References m_components.
Referenced by CMP_READER::Load(), LEGACY_NETLIST_READER::loadFootprintFilters(), KICAD_NETLIST_PARSER::parseNet(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
|
inline |
Definition at line 262 of file pcb_netlist.h.
References m_components.
Referenced by CVPCB_MAINFRAME::AutomaticFootprintMatching(), TEST_NETLIST_EXPORTER_KICAD_FIXTURE::CompareNetlists(), CVPCB_MAINFRAME::GetComponentIndices(), CVPCB_MAINFRAME::GetSelectedComponent(), PCB_EDIT_FRAME::LoadFootprints(), KICAD_NETLIST_READER::LoadNetlist(), KICAD_NETLIST_PARSER::parseLibPartList(), CVPCB_MAINFRAME::readNetListAndFpFiles(), CVPCB_MAINFRAME::readSchematicNetlist(), BOARD_NETLIST_UPDATER::testConnectivity(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), BOARD_NETLIST_UPDATER::updateCopperZoneNets(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
|
inline |
Definition at line 305 of file pcb_netlist.h.
References m_replaceFootprints.
Referenced by PCB_EDIT_FRAME::LoadFootprints().
|
inline |
Definition at line 252 of file pcb_netlist.h.
References m_components.
Referenced by CVPCB_MAINFRAME::AssociateFootprint(), CVPCB_MAINFRAME::AutomaticFootprintMatching(), CVPCB_MAINFRAME::GetComponentIndices(), PCB_EDIT_FRAME::LoadFootprints(), and CVPCB_MAINFRAME::SendComponentSelectionToSch().
|
inline |
Definition at line 302 of file pcb_netlist.h.
References m_findByTimeStamp.
Referenced by PCB_EDIT_FRAME::LoadFootprints().
|
inline |
Definition at line 301 of file pcb_netlist.h.
References m_findByTimeStamp.
Referenced by DIALOG_UPDATE_PCB::PerformUpdate().
|
inline |
Definition at line 304 of file pcb_netlist.h.
References m_replaceFootprints.
Referenced by DIALOG_UPDATE_PCB::PerformUpdate().
void NETLIST::SortByFPID | ( | ) |
Definition at line 220 of file pcb_netlist.cpp.
References ByFPID(), and m_components.
Referenced by PCB_EDIT_FRAME::LoadFootprints().
void NETLIST::SortByReference | ( | ) |
Definition at line 235 of file pcb_netlist.cpp.
References m_components.
Referenced by DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), and CVPCB_MAINFRAME::readSchematicNetlist().
|
private |
Definition at line 322 of file pcb_netlist.h.
Referenced by AddComponent(), AnyFootprintsLinked(), Clear(), Format(), GetComponent(), GetComponentByPath(), GetComponentByReference(), GetCount(), IsEmpty(), SortByFPID(), and SortByReference().
|
private |
Definition at line 324 of file pcb_netlist.h.
Referenced by IsFindByTimeStamp(), and SetFindByTimeStamp().
|
private |
Definition at line 325 of file pcb_netlist.h.
Referenced by GetReplaceFootprints(), and SetReplaceFootprints().