KiCad PCB EDA Suite
netlist_exporter_generic.cpp File Reference
#include <build_version.h>
#include <sch_base_frame.h>
#include <class_library.h>
#include <schframe.h>
#include "netlist_exporter_generic.h"

Go to the source code of this file.


 Holder for multi-unit component fields. More...


static bool sortPinsByNumber (LIB_PIN *aPin1, LIB_PIN *aPin2)

Function Documentation

static bool sortPinsByNumber ( LIB_PIN aPin1,
LIB_PIN aPin2 

Definition at line 547 of file netlist_exporter_generic.cpp.

References LIB_PIN::GetNumberString(), and RefDesStringCompare().

Referenced by NETLIST_EXPORTER_GENERIC::makeLibParts().

548 {
549  // return "lhs < rhs"
550  return RefDesStringCompare( aPin1->GetNumberString(), aPin2->GetNumberString() ) < 0;
551 }
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 GetNumberString() const
Definition: lib_pin.h:175