KiCad PCB EDA Suite
netlist_exporter_xml.cpp File Reference
#include "netlist_exporter_xml.h"
#include <build_version.h>
#include <sch_base_frame.h>
#include <class_library.h>
#include <kicad_string.h>
#include <connection_graph.h>
#include <refdes_utils.h>
#include <symbol_lib_table.h>
#include <set>

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

◆ sortPinsByNumber()

static bool sortPinsByNumber ( LIB_PIN aPin1,
LIB_PIN aPin2 

Definition at line 755 of file netlist_exporter_xml.cpp.

756 {
757  // return "lhs < rhs"
758  return UTIL::RefDesStringCompare( aPin1->GetNumber(), aPin2->GetNumber() ) < 0;
759 }
int RefDesStringCompare(const wxString &aFirst, const wxString &aSecond)
Acts just like the strcmp function but treats numbers within the string text correctly for sorting.
const wxString & GetNumber() const
Definition: lib_pin.h:165

References LIB_PIN::GetNumber(), and UTIL::RefDesStringCompare().

Referenced by NETLIST_EXPORTER_XML::makeLibParts().