KiCad PCB EDA Suite
ESMD Struct Reference

Eagle SMD pad. More...

#include <eagle_parser.h>

Public Member Functions

 ESMD (wxXmlNode *aSMD)
 

Public Attributes

string name
 
double x
 
double y
 
double dx
 
double dy
 
int layer
 
opt_int roundness
 
opt_erot rot
 
opt_bool stop
 
opt_bool thermals
 
opt_bool cream
 

Detailed Description

Eagle SMD pad.

Definition at line 574 of file eagle_parser.h.

Constructor & Destructor Documentation

ESMD::ESMD ( wxXmlNode *  aSMD)

Definition at line 435 of file eagle_parser.cpp.

References cream, dx, dy, layer, name, rot, roundness, stop, thermals, x, and y.

436 {
437  /*
438  <!ATTLIST smd
439  name %String; #REQUIRED
440  x %Coord; #REQUIRED
441  y %Coord; #REQUIRED
442  dx %Dimension; #REQUIRED
443  dy %Dimension; #REQUIRED
444  layer %Layer; #REQUIRED
445  roundness %Int; "0"
446  rot %Rotation; "R0"
447  stop %Bool; "yes"
448  thermals %Bool; "yes"
449  cream %Bool; "yes"
450  >
451  */
452 
453  // DTD #REQUIRED, throw exception if not found
454  name = parseRequiredAttribute<string>( aSMD, "name" );
455  x = parseRequiredAttribute<double>( aSMD, "x" );
456  y = parseRequiredAttribute<double>( aSMD, "y" );
457  dx = parseRequiredAttribute<double>( aSMD, "dx" );
458  dy = parseRequiredAttribute<double>( aSMD, "dy" );
459  layer = parseRequiredAttribute<int>( aSMD, "layer" );
460 
461  roundness = parseOptionalAttribute<int>( aSMD, "roundness" );
462  rot = parseOptionalAttribute<EROT>( aSMD, "rot" );
463  thermals = parseOptionalAttribute<bool>( aSMD, "thermals" );
464  stop = parseOptionalAttribute<bool>( aSMD, "stop" );
465  thermals = parseOptionalAttribute<bool>( aSMD, "thermals" );
466  cream = parseOptionalAttribute<bool>( aSMD, "cream" );
467 }
opt_bool stop
Definition: eagle_parser.h:584
double y
Definition: eagle_parser.h:578
string name
Definition: eagle_parser.h:576
double x
Definition: eagle_parser.h:577
opt_bool thermals
Definition: eagle_parser.h:585
double dx
Definition: eagle_parser.h:579
int layer
Definition: eagle_parser.h:581
double dy
Definition: eagle_parser.h:580
opt_int roundness
Definition: eagle_parser.h:582
opt_erot rot
Definition: eagle_parser.h:583
opt_bool cream
Definition: eagle_parser.h:586

Member Data Documentation

opt_bool ESMD::cream

Definition at line 586 of file eagle_parser.h.

Referenced by ESMD().

double ESMD::dx

Definition at line 579 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().

double ESMD::dy

Definition at line 580 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().

int ESMD::layer

Definition at line 581 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().

string ESMD::name

Definition at line 576 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().

opt_erot ESMD::rot

Definition at line 583 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().

opt_int ESMD::roundness

Definition at line 582 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().

opt_bool ESMD::stop

Definition at line 584 of file eagle_parser.h.

Referenced by ESMD().

opt_bool ESMD::thermals

Definition at line 585 of file eagle_parser.h.

Referenced by ESMD().

double ESMD::x

Definition at line 577 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().

double ESMD::y

Definition at line 578 of file eagle_parser.h.

Referenced by ESMD(), and EAGLE_PLUGIN::packageSMD().


The documentation for this struct was generated from the following files: