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
 
ECOORD x
 
ECOORD y
 
ECOORD dx
 
ECOORD 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 698 of file eagle_parser.h.

Constructor & Destructor Documentation

ESMD::ESMD ( wxXmlNode *  aSMD)

Definition at line 643 of file eagle_parser.cpp.

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

644 {
645  /*
646  <!ATTLIST smd
647  name %String; #REQUIRED
648  x %Coord; #REQUIRED
649  y %Coord; #REQUIRED
650  dx %Dimension; #REQUIRED
651  dy %Dimension; #REQUIRED
652  layer %Layer; #REQUIRED
653  roundness %Int; "0"
654  rot %Rotation; "R0"
655  stop %Bool; "yes"
656  thermals %Bool; "yes"
657  cream %Bool; "yes"
658  >
659  */
660 
661  // DTD #REQUIRED, throw exception if not found
662  name = parseRequiredAttribute<string>( aSMD, "name" );
663  x = parseRequiredAttribute<ECOORD>( aSMD, "x" );
664  y = parseRequiredAttribute<ECOORD>( aSMD, "y" );
665  dx = parseRequiredAttribute<ECOORD>( aSMD, "dx" );
666  dy = parseRequiredAttribute<ECOORD>( aSMD, "dy" );
667  layer = parseRequiredAttribute<int>( aSMD, "layer" );
668 
669  roundness = parseOptionalAttribute<int>( aSMD, "roundness" );
670  rot = parseOptionalAttribute<EROT>( aSMD, "rot" );
671  thermals = parseOptionalAttribute<bool>( aSMD, "thermals" );
672  stop = parseOptionalAttribute<bool>( aSMD, "stop" );
673  thermals = parseOptionalAttribute<bool>( aSMD, "thermals" );
674  cream = parseOptionalAttribute<bool>( aSMD, "cream" );
675 }
opt_bool stop
Definition: eagle_parser.h:708
string name
Definition: eagle_parser.h:700
ECOORD y
Definition: eagle_parser.h:702
opt_bool thermals
Definition: eagle_parser.h:709
ECOORD dy
Definition: eagle_parser.h:704
ECOORD dx
Definition: eagle_parser.h:703
int layer
Definition: eagle_parser.h:705
opt_int roundness
Definition: eagle_parser.h:706
ECOORD x
Definition: eagle_parser.h:701
opt_erot rot
Definition: eagle_parser.h:707
opt_bool cream
Definition: eagle_parser.h:710

Member Data Documentation

opt_bool ESMD::cream

Definition at line 710 of file eagle_parser.h.

Referenced by ESMD().

ECOORD ESMD::dx

Definition at line 703 of file eagle_parser.h.

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

ECOORD ESMD::dy

Definition at line 704 of file eagle_parser.h.

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

int ESMD::layer

Definition at line 705 of file eagle_parser.h.

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

string ESMD::name

Definition at line 700 of file eagle_parser.h.

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

opt_erot ESMD::rot

Definition at line 707 of file eagle_parser.h.

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

opt_int ESMD::roundness

Definition at line 706 of file eagle_parser.h.

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

opt_bool ESMD::stop

Definition at line 708 of file eagle_parser.h.

Referenced by ESMD().

opt_bool ESMD::thermals

Definition at line 709 of file eagle_parser.h.

Referenced by ESMD().

ECOORD ESMD::x

Definition at line 701 of file eagle_parser.h.

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

ECOORD ESMD::y

Definition at line 702 of file eagle_parser.h.

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


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