KiCad PCB EDA Suite
EPAD Struct Reference

Eagle thru hol pad. More...

#include <eagle_parser.h>

Public Types

enum  {
  SQUARE, ROUND, OCTAGON, LONG,
  OFFSET
}
 

Public Member Functions

 EPAD (wxXmlNode *aPad)
 

Public Attributes

string name
 
ECOORD x
 
ECOORD y
 
ECOORD drill
 
opt_ecoord diameter
 
opt_int shape
 
opt_erot rot
 
opt_bool stop
 
opt_bool thermals
 
opt_bool first
 

Detailed Description

Eagle thru hol pad.

Definition at line 671 of file eagle_parser.h.

Member Enumeration Documentation

anonymous enum
Enumerator
SQUARE 
ROUND 
OCTAGON 
LONG 
OFFSET 

Definition at line 680 of file eagle_parser.h.

680  {
681  SQUARE,
682  ROUND,
683  OCTAGON,
684  LONG,
685  OFFSET,
686  };

Constructor & Destructor Documentation

EPAD::EPAD ( wxXmlNode *  aPad)

Definition at line 594 of file eagle_parser.cpp.

References diameter, drill, first, LONG, name, OCTAGON, OFFSET, rot, ROUND, shape, SQUARE, stop, thermals, x, and y.

595 {
596  /*
597  <!ELEMENT pad EMPTY>
598  <!ATTLIST pad
599  name %String; #REQUIRED
600  x %Coord; #REQUIRED
601  y %Coord; #REQUIRED
602  drill %Dimension; #REQUIRED
603  diameter %Dimension; "0"
604  shape %PadShape; "round"
605  rot %Rotation; "R0"
606  stop %Bool; "yes"
607  thermals %Bool; "yes"
608  first %Bool; "no"
609  >
610  */
611 
612  // #REQUIRED says DTD, throw exception if not found
613  name = parseRequiredAttribute<string>( aPad, "name" );
614  x = parseRequiredAttribute<ECOORD>( aPad, "x" );
615  y = parseRequiredAttribute<ECOORD>( aPad, "y" );
616  drill = parseRequiredAttribute<ECOORD>( aPad, "drill" );
617 
618  // Optional attributes
619  diameter = parseOptionalAttribute<ECOORD>( aPad, "diameter" );
620 
621  opt_string s = parseOptionalAttribute<string>( aPad, "shape" );
622 
623  // (square | round | octagon | long | offset)
624  if( s == "square" )
626  else if( s == "round" )
627  shape = EPAD::ROUND;
628  else if( s == "octagon" )
630  else if( s == "long" )
631  shape = EPAD::LONG;
632  else if( s == "offset" )
634 
635  rot = parseOptionalAttribute<EROT>( aPad, "rot" );
636  stop = parseOptionalAttribute<bool>( aPad, "stop" );
637  thermals = parseOptionalAttribute<bool>( aPad, "thermals" );
638  first = parseOptionalAttribute<bool>( aPad, "first" );
639 }
opt_bool stop
Definition: eagle_parser.h:689
opt_bool thermals
Definition: eagle_parser.h:690
opt_erot rot
Definition: eagle_parser.h:688
ECOORD x
Definition: eagle_parser.h:674
string name
Definition: eagle_parser.h:673
opt_ecoord diameter
Definition: eagle_parser.h:677
ECOORD y
Definition: eagle_parser.h:675
opt_bool first
Definition: eagle_parser.h:691
opt_int shape
Definition: eagle_parser.h:687
ECOORD drill
Definition: eagle_parser.h:676

Member Data Documentation

opt_ecoord EPAD::diameter

Definition at line 677 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

ECOORD EPAD::drill

Definition at line 676 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

opt_bool EPAD::first

Definition at line 691 of file eagle_parser.h.

Referenced by EPAD().

string EPAD::name

Definition at line 673 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

opt_erot EPAD::rot

Definition at line 688 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

opt_int EPAD::shape

Definition at line 687 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

opt_bool EPAD::stop

Definition at line 689 of file eagle_parser.h.

Referenced by EPAD().

opt_bool EPAD::thermals

Definition at line 690 of file eagle_parser.h.

Referenced by EPAD().

ECOORD EPAD::x

Definition at line 674 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

ECOORD EPAD::y

Definition at line 675 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().


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