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

Constructor & Destructor Documentation

◆ EPIN()

EPIN::EPIN ( wxXmlNode *  aPin)

Definition at line 715 of file eagle_parser.cpp.

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

References direction, length, name, rot, swaplevel, visible, x, and y.

Member Data Documentation

◆ direction

opt_wxString EPIN::direction

Definition at line 737 of file eagle_parser.h.

Referenced by EPIN(), and SCH_EAGLE_PLUGIN::loadSymbol().

◆ function

opt_wxString EPIN::function

Definition at line 738 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

◆ length

opt_wxString EPIN::length

Definition at line 736 of file eagle_parser.h.

Referenced by EPIN(), and SCH_EAGLE_PLUGIN::loadPin().

◆ name

wxString EPIN::name

Definition at line 731 of file eagle_parser.h.

Referenced by EPIN(), and SCH_EAGLE_PLUGIN::loadPin().

◆ rot

opt_erot EPIN::rot

Definition at line 740 of file eagle_parser.h.

Referenced by EPIN(), and SCH_EAGLE_PLUGIN::loadPin().

◆ swaplevel

opt_int EPIN::swaplevel

Definition at line 739 of file eagle_parser.h.

Referenced by EPIN().

◆ visible

opt_wxString EPIN::visible

Definition at line 735 of file eagle_parser.h.

Referenced by EPIN(), and SCH_EAGLE_PLUGIN::loadPin().

◆ x

ECOORD EPIN::x

Definition at line 732 of file eagle_parser.h.

Referenced by EPIN(), and SCH_EAGLE_PLUGIN::loadPin().

◆ y

ECOORD EPIN::y

Definition at line 733 of file eagle_parser.h.

Referenced by EPIN(), and SCH_EAGLE_PLUGIN::loadPin().


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