KiCad PCB EDA Suite
gendrill_Excellon_writer.cpp File Reference

Functions to create EXCELLON drill files and report files. More...

#include <fctsys.h>
#include <vector>
#include <plot_common.h>
#include <trigo.h>
#include <macros.h>
#include <kicad_string.h>
#include <wxPcbStruct.h>
#include <pgm_base.h>
#include <build_version.h>
#include <class_board.h>
#include <class_module.h>
#include <class_track.h>
#include <pcbplot.h>
#include <pcbnew.h>
#include <gendrill_Excellon_writer.h>
#include <wildcards_and_files_ext.h>
#include <reporter.h>
#include <collectors.h>

Go to the source code of this file.

Functions

static bool CmpHoleSettings (const HOLE_INFO &a, const HOLE_INFO &b)
 

Detailed Description

Functions to create EXCELLON drill files and report files.

Definition in file gendrill_Excellon_writer.cpp.

Function Documentation

static bool CmpHoleSettings ( const HOLE_INFO a,
const HOLE_INFO b 
)
static

Definition at line 542 of file gendrill_Excellon_writer.cpp.

References HOLE_INFO::m_Hole_Diameter, HOLE_INFO::m_Hole_NotPlated, HOLE_INFO::m_Hole_Pos, wxPoint::x, and wxPoint::y.

Referenced by EXCELLON_WRITER::buildHolesList().

543 {
545  return b.m_Hole_NotPlated;
546 
547  if( a.m_Hole_Diameter != b.m_Hole_Diameter )
548  return a.m_Hole_Diameter < b.m_Hole_Diameter;
549 
550  if( a.m_Hole_Pos.x != b.m_Hole_Pos.x )
551  return a.m_Hole_Pos.x < b.m_Hole_Pos.x;
552 
553  return a.m_Hole_Pos.y < b.m_Hole_Pos.y;
554 }