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 578 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 580 of file eeschema/erc.cpp.

581  {
582  wxString str1 = lab1->m_SheetPath.PathAsString() + lab1->m_Label;
583  wxString str2 = lab2->m_SheetPath.PathAsString() + lab2->m_Label;
585  return str1.Cmp( str2 ) < 0;
586  }
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: