KiCad PCB EDA Suite
ESMD Struct Reference

Eagle SMD pad. More...

#include <eagle_parser.h>

Inheritance diagram for ESMD:
EPAD_COMMON

Public Member Functions

 ESMD (wxXmlNode *aSMD)
 

Public Attributes

ECOORD dx
 
ECOORD dy
 
int layer
 
opt_int roundness
 
opt_bool cream
 
wxString name
 
ECOORD x
 
ECOORD y
 
opt_erot rot
 
opt_bool stop
 
opt_bool thermals
 

Detailed Description

Eagle SMD pad.

Definition at line 715 of file eagle_parser.h.

Constructor & Destructor Documentation

ESMD::ESMD ( wxXmlNode *  aSMD)

Definition at line 679 of file eagle_parser.cpp.

References cream, dx, dy, layer, and roundness.

680  : EPAD_COMMON( aSMD )
681 {
682  /*
683  <!ATTLIST smd
684  name %String; #REQUIRED
685  x %Coord; #REQUIRED
686  y %Coord; #REQUIRED
687  dx %Dimension; #REQUIRED
688  dy %Dimension; #REQUIRED
689  layer %Layer; #REQUIRED
690  roundness %Int; "0"
691  rot %Rotation; "R0"
692  stop %Bool; "yes"
693  thermals %Bool; "yes"
694  cream %Bool; "yes"
695  >
696  */
697 
698  // DTD #REQUIRED, throw exception if not found
699  dx = parseRequiredAttribute<ECOORD>( aSMD, "dx" );
700  dy = parseRequiredAttribute<ECOORD>( aSMD, "dy" );
701  layer = parseRequiredAttribute<int>( aSMD, "layer" );
702 
703  roundness = parseOptionalAttribute<int>( aSMD, "roundness" );
704  cream = parseOptionalAttribute<bool>( aSMD, "cream" );
705 }
ECOORD dy
Definition: eagle_parser.h:718
ECOORD dx
Definition: eagle_parser.h:717
int layer
Definition: eagle_parser.h:719
opt_int roundness
Definition: eagle_parser.h:720
EPAD_COMMON(wxXmlNode *aPad)
opt_bool cream
Definition: eagle_parser.h:721

Member Data Documentation

opt_bool ESMD::cream

Definition at line 721 of file eagle_parser.h.

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

ECOORD ESMD::dx

Definition at line 717 of file eagle_parser.h.

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

ECOORD ESMD::dy

Definition at line 718 of file eagle_parser.h.

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

int ESMD::layer

Definition at line 719 of file eagle_parser.h.

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

opt_int ESMD::roundness

Definition at line 720 of file eagle_parser.h.

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

opt_bool EPAD_COMMON::stop
inherited

Definition at line 686 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::transferPad().

opt_bool EPAD_COMMON::thermals
inherited

Definition at line 687 of file eagle_parser.h.

Referenced by EPOLYGON::EPOLYGON(), and EAGLE_PLUGIN::transferPad().


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