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 739 of file eagle_parser.cpp.

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