KiCad PCB EDA Suite
netlist_exporter.cpp File Reference
#include <fctsys.h>
#include <confirm.h>
#include <kicad_string.h>
#include <gestfich.h>
#include <pgm_base.h>
#include <sch_reference_list.h>
#include <class_library.h>
#include <netlist.h>
#include <netlist_exporter.h>

Go to the source code of this file.


static bool sortPinsByNum (NETLIST_OBJECT *aPin1, NETLIST_OBJECT *aPin2)
 Comparison routine for sorting by pin numbers. More...

Function Documentation

static bool sortPinsByNum ( NETLIST_OBJECT aPin1,

Comparison routine for sorting by pin numbers.

Definition at line 157 of file netlist_exporter.cpp.

References NETLIST_OBJECT::GetPinNumText(), and RefDesStringCompare().

Referenced by NETLIST_EXPORTER::findNextComponentAndCreatePinList().

158 {
159  // return "lhs < rhs"
160  return RefDesStringCompare( aPin1->GetPinNumText(), aPin2->GetPinNumText() ) < 0;
161 }
const wxString & GetPinNumText() const
Function GetPinNum returns a pin number in wxString form.
int RefDesStringCompare(wxString strFWord, wxString strSWord)
Function RefDesStringCompare acts just like the strcmp function but treats numbers within the string ...
Definition: string.cpp:542