KiCad PCB EDA Suite
eagle_plugin.cpp File Reference
#include <errno.h>
#include <wx/string.h>
#include <wx/xml/xml.h>
#include <common.h>
#include <macros.h>
#include <fctsys.h>
#include <trigo.h>
#include <kicad_string.h>
#include <properties.h>
#include <wx/filename.h>
#include <class_board.h>
#include <class_module.h>
#include <class_track.h>
#include <class_edge_mod.h>
#include <class_zone.h>
#include <class_pcb_text.h>
#include <class_dimension.h>
#include <eagle_plugin.h>

Go to the source code of this file.

Typedefs

typedef MODULE_MAP::iterator MODULE_ITER
 
typedef MODULE_MAP::const_iterator MODULE_CITER
 
typedef std::vector< ZONE_CONTAINER * > ZONES
 non-owning container More...
 

Functions

static double parseEagle (const wxString &aDistance)
 Parse an eagle distance which is either mm, or mils if there is "mil" suffix. More...
 

Typedef Documentation

typedef MODULE_MAP::const_iterator MODULE_CITER

Definition at line 81 of file eagle_plugin.cpp.

typedef MODULE_MAP::iterator MODULE_ITER

Definition at line 80 of file eagle_plugin.cpp.

typedef std::vector<ZONE_CONTAINER*> ZONES

non-owning container

Definition at line 1643 of file eagle_plugin.cpp.

Function Documentation

static double parseEagle ( const wxString &  aDistance)
static

Parse an eagle distance which is either mm, or mils if there is "mil" suffix.

Return is in BIU.

Definition at line 86 of file eagle_plugin.cpp.

Referenced by ERULES::parse().

87 {
88  double ret = strtod( aDistance.c_str(), NULL );
89  if( aDistance.npos != aDistance.find( "mil" ) )
90  ret = IU_PER_MILS * ret;
91  else
92  ret = IU_PER_MM * ret;
93 
94  return ret;
95 }