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

Constructor & Destructor Documentation

◆ EPIN()

EPIN::EPIN ( wxXmlNode *  aPin)

Definition at line 742 of file eagle_parser.cpp.

743 {
744  /*
745  <!ELEMENT pin EMPTY>
746  <!ATTLIST pin
747  name %String; #REQUIRED
748  x %Coord; #REQUIRED
749  y %Coord; #REQUIRED
750  visible %PinVisible; "both"
751  length %PinLength; "long"
752  direction %PinDirection; "io"
753  function %PinFunction; "none"
754  swaplevel %Int; "0"
755  rot %Rotation; "R0"
756  >
757  */
758 
759  // DTD #REQUIRED, throw exception if not found
760  name = parseRequiredAttribute<wxString>( aPin, wxT( "name" ) );
761  x = parseRequiredAttribute<ECOORD>( aPin, wxT( "x" ) );
762  y = parseRequiredAttribute<ECOORD>( aPin, wxT( "y" ) );
763 
764  visible = parseOptionalAttribute<wxString>( aPin, wxT( "visible" ) );
765  length = parseOptionalAttribute<wxString>( aPin, wxT( "length" ) );
766  direction = parseOptionalAttribute<wxString>( aPin, wxT( "direction" ) );
767  function = parseOptionalAttribute<wxString>( aPin, wxT( "function" ) );
768  swaplevel = parseOptionalAttribute<int>( aPin, wxT( "swaplevel" ) );
769  rot = parseOptionalAttribute<EROT>( aPin, wxT( "rot" ) );
770 }
ECOORD x
Definition: eagle_parser.h:744
opt_wxString direction
Definition: eagle_parser.h:749
opt_int swaplevel
Definition: eagle_parser.h:751
ECOORD y
Definition: eagle_parser.h:745
wxString name
Definition: eagle_parser.h:743
opt_wxString visible
Definition: eagle_parser.h:747
opt_wxString length
Definition: eagle_parser.h:748
opt_erot rot
Definition: eagle_parser.h:752

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

Member Data Documentation

◆ direction

opt_wxString EPIN::direction

Definition at line 749 of file eagle_parser.h.

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

◆ function

opt_wxString EPIN::function

Definition at line 750 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

◆ length

opt_wxString EPIN::length

Definition at line 748 of file eagle_parser.h.

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

◆ name

wxString EPIN::name

Definition at line 743 of file eagle_parser.h.

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

◆ rot

opt_erot EPIN::rot

Definition at line 752 of file eagle_parser.h.

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

◆ swaplevel

opt_int EPIN::swaplevel

Definition at line 751 of file eagle_parser.h.

Referenced by EPIN().

◆ visible

opt_wxString EPIN::visible

Definition at line 747 of file eagle_parser.h.

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

◆ x

ECOORD EPIN::x

Definition at line 744 of file eagle_parser.h.

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

◆ y

ECOORD EPIN::y

Definition at line 745 of file eagle_parser.h.

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


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