KiCad PCB EDA Suite
footprint_info.h File Reference
#include <boost/ptr_container/ptr_vector.hpp>
#include <import_export.h>
#include <ki_exception.h>
#include <ki_mutex.h>
#include <kicad_string.h>
#include <sync_queue.h>
#include <atomic>
#include <functional>
#include <memory>

Go to the source code of this file.

Classes

class  FOOTPRINT_INFO
 
class  FOOTPRINT_LIST
 Holds a list of FOOTPRINT_INFO objects, along with a list of IO_ERRORs or PARSE_ERRORs that were thrown acquiring the FOOTPRINT_INFOs. More...
 
class  FOOTPRINT_ASYNC_LOADER
 This class can be used to populate a FOOTPRINT_LIST asynchronously. More...
 

Macros

#define USE_FPI_LAZY   0
 

Functions

bool operator< (const FOOTPRINT_INFO &item1, const FOOTPRINT_INFO &item2)
 FOOTPRINT object list sort function. More...
 

Macro Definition Documentation

#define USE_FPI_LAZY   0

Definition at line 46 of file footprint_info.h.

Function Documentation

bool operator< ( const FOOTPRINT_INFO item1,
const FOOTPRINT_INFO item2 
)
inline

FOOTPRINT object list sort function.

Definition at line 151 of file footprint_info.h.

References FOOTPRINT_INFO::m_fpname, FOOTPRINT_INFO::m_nickname, and StrNumCmp().

152 {
153  int retv = StrNumCmp( item1.m_nickname, item2.m_nickname, INT_MAX, true );
154 
155  if( retv != 0 )
156  return retv < 0;
157 
158  return StrNumCmp( item1.m_fpname, item2.m_fpname, INT_MAX, true ) < 0;
159 }
wxString m_fpname
Module name.
int StrNumCmp(const wxString &aString1, const wxString &aString2, int aLength, bool aIgnoreCase)
Function StrLenNumCmp is a routine compatible with qsort() to sort by alphabetical order...
Definition: string.cpp:238
wxString m_nickname
library as known in FP_LIB_TABLE