KiCad PCB EDA Suite
EPIN Struct Reference

Eagle pin element. More...

#include <eagle_parser.h>

Public Member Functions

 EPIN (wxXmlNode *aPin)
 

Public Attributes

wxString name
 
ECOORD x
 
ECOORD y
 
opt_wxString visible
 
opt_wxString length
 
opt_wxString direction
 
opt_wxString function
 
opt_int swaplevel
 
opt_erot rot
 

Detailed Description

Eagle pin element.

Definition at line 728 of file eagle_parser.h.

Constructor & Destructor Documentation

EPIN::EPIN ( wxXmlNode *  aPin)

Definition at line 708 of file eagle_parser.cpp.

References EPAD_COMMON::name, EPAD_COMMON::rot, EPAD_COMMON::x, and EPAD_COMMON::y.

709 {
710  /*
711  <!ELEMENT pin EMPTY>
712  <!ATTLIST pin
713  name %String; #REQUIRED
714  x %Coord; #REQUIRED
715  y %Coord; #REQUIRED
716  visible %PinVisible; "both"
717  length %PinLength; "long"
718  direction %PinDirection; "io"
719  function %PinFunction; "none"
720  swaplevel %Int; "0"
721  rot %Rotation; "R0"
722  >
723  */
724 
725  // DTD #REQUIRED, throw exception if not found
726  name = parseRequiredAttribute<wxString>( aPin, "name" );
727  x = parseRequiredAttribute<ECOORD>( aPin, "x" );
728  y = parseRequiredAttribute<ECOORD>( aPin, "y" );
729 
730  visible = parseOptionalAttribute<wxString>( aPin, "visible" );
731  length = parseOptionalAttribute<wxString>( aPin, "length" );
732  direction = parseOptionalAttribute<wxString>( aPin, "direction" );
733  function = parseOptionalAttribute<wxString>( aPin, "function" );
734  swaplevel = parseOptionalAttribute<int>( aPin, "swaplevel" );
735  rot = parseOptionalAttribute<EROT>( aPin, "rot" );
736 }
ECOORD x
Definition: eagle_parser.h:731
opt_wxString direction
Definition: eagle_parser.h:736
opt_int swaplevel
Definition: eagle_parser.h:738
ECOORD y
Definition: eagle_parser.h:732
wxString name
Definition: eagle_parser.h:730
opt_wxString visible
Definition: eagle_parser.h:734
opt_wxString length
Definition: eagle_parser.h:735
opt_erot rot
Definition: eagle_parser.h:739

Member Data Documentation

opt_wxString EPIN::direction

Definition at line 736 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadSymbol().

opt_wxString EPIN::function

Definition at line 737 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

opt_wxString EPIN::length

Definition at line 735 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

wxString EPIN::name

Definition at line 730 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

opt_erot EPIN::rot

Definition at line 739 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

opt_int EPIN::swaplevel

Definition at line 738 of file eagle_parser.h.

opt_wxString EPIN::visible

Definition at line 734 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

ECOORD EPIN::x

Definition at line 731 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

ECOORD EPIN::y

Definition at line 732 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().


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