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.

Classes

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

Functions

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

Function Documentation

static bool sortPinsByNumber ( LIB_PIN aPin1,
LIB_PIN aPin2 
)
static

Definition at line 547 of file netlist_exporter_generic.cpp.

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

Referenced by NETLIST_EXPORTER_GENERIC::makeLibParts().

548 {
549  // return "lhs < rhs"
550  return RefDesStringCompare( aPin1->GetNumber(), aPin2->GetNumber() ) < 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
const wxString & GetNumber() const
Definition: lib_pin.h:190