KiCad PCB EDA Suite
ESMD Struct Reference

Eagle SMD pad. More...

#include <eagle_parser.h>

Public Member Functions

 ESMD (wxXmlNode *aSMD)
 

Public Attributes

wxString 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 705 of file eagle_parser.h.

Constructor & Destructor Documentation

ESMD::ESMD ( wxXmlNode *  aSMD)

Definition at line 672 of file eagle_parser.cpp.

References name.

673 {
674  /*
675  <!ATTLIST smd
676  name %String; #REQUIRED
677  x %Coord; #REQUIRED
678  y %Coord; #REQUIRED
679  dx %Dimension; #REQUIRED
680  dy %Dimension; #REQUIRED
681  layer %Layer; #REQUIRED
682  roundness %Int; "0"
683  rot %Rotation; "R0"
684  stop %Bool; "yes"
685  thermals %Bool; "yes"
686  cream %Bool; "yes"
687  >
688  */
689 
690  // DTD #REQUIRED, throw exception if not found
691  name = parseRequiredAttribute<wxString>( aSMD, "name" );
692  x = parseRequiredAttribute<ECOORD>( aSMD, "x" );
693  y = parseRequiredAttribute<ECOORD>( aSMD, "y" );
694  dx = parseRequiredAttribute<ECOORD>( aSMD, "dx" );
695  dy = parseRequiredAttribute<ECOORD>( aSMD, "dy" );
696  layer = parseRequiredAttribute<int>( aSMD, "layer" );
697 
698  roundness = parseOptionalAttribute<int>( aSMD, "roundness" );
699  rot = parseOptionalAttribute<EROT>( aSMD, "rot" );
700  thermals = parseOptionalAttribute<bool>( aSMD, "thermals" );
701  stop = parseOptionalAttribute<bool>( aSMD, "stop" );
702  thermals = parseOptionalAttribute<bool>( aSMD, "thermals" );
703  cream = parseOptionalAttribute<bool>( aSMD, "cream" );
704 }
opt_bool stop
Definition: eagle_parser.h:715
ECOORD y
Definition: eagle_parser.h:709
wxString name
Definition: eagle_parser.h:707
opt_bool thermals
Definition: eagle_parser.h:716
ECOORD dy
Definition: eagle_parser.h:711
ECOORD dx
Definition: eagle_parser.h:710
int layer
Definition: eagle_parser.h:712
opt_int roundness
Definition: eagle_parser.h:713
ECOORD x
Definition: eagle_parser.h:708
opt_erot rot
Definition: eagle_parser.h:714
opt_bool cream
Definition: eagle_parser.h:717

Member Data Documentation

opt_bool ESMD::cream

Definition at line 717 of file eagle_parser.h.

ECOORD ESMD::dx

Definition at line 710 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().

ECOORD ESMD::dy

Definition at line 711 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().

int ESMD::layer

Definition at line 712 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().

wxString ESMD::name

Definition at line 707 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().

opt_erot ESMD::rot

Definition at line 714 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().

opt_int ESMD::roundness

Definition at line 713 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().

opt_bool ESMD::stop

Definition at line 715 of file eagle_parser.h.

opt_bool ESMD::thermals

Definition at line 716 of file eagle_parser.h.

ECOORD ESMD::x

Definition at line 708 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().

ECOORD ESMD::y

Definition at line 709 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::packageSMD().


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