KiCad PCB EDA Suite
compare_labels Struct Reference

Public Member Functions

bool operator() (const NETLIST_OBJECT *lab1, const NETLIST_OBJECT *lab2) const

Detailed Description

Definition at line 478 of file eeschema/erc.cpp.

Member Function Documentation

◆ operator()()

bool compare_labels::operator() ( const NETLIST_OBJECT lab1,
const NETLIST_OBJECT lab2 
) const

Definition at line 480 of file eeschema/erc.cpp.

481  {
482  wxString str1 = lab1->m_SheetPath.PathAsString() + lab1->m_Label;
483  wxString str2 = lab2->m_SheetPath.PathAsString() + lab2->m_Label;
485  return str1.Cmp( str2 ) < 0;
486  }
wxString PathAsString() const
Function PathAsString the path uses the time stamps which do not changes even when editing sheet para...

References NETLIST_OBJECT::m_Label, NETLIST_OBJECT::m_SheetPath, and SCH_SHEET_PATH::PathAsString().

The documentation for this struct was generated from the following file: