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_netlist_object.h>
#include <class_library.h>
#include <lib_pin.h>
#include <sch_component.h>
#include <sch_text.h>
#include <sch_sheet.h>
#include <netlist.h>
#include <netlist_exporter.h>

Go to the source code of this file.

Functions

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,
NETLIST_OBJECT aPin2 
)
static

Comparison routine for sorting by pin numbers.

Definition at line 151 of file netlist_exporter.cpp.

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

Referenced by NETLIST_EXPORTER::findNextComponentAndCreatePinList().

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