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::EPIN ( wxXmlNode *  aPin)

Definition at line 698 of file eagle_parser.cpp.

699 {
700  /*
701  <!ELEMENT pin EMPTY>
702  <!ATTLIST pin
703  name %String; #REQUIRED
704  x %Coord; #REQUIRED
705  y %Coord; #REQUIRED
706  visible %PinVisible; "both"
707  length %PinLength; "long"
708  direction %PinDirection; "io"
709  function %PinFunction; "none"
710  swaplevel %Int; "0"
711  rot %Rotation; "R0"
712  >
713  */
714 
715  // DTD #REQUIRED, throw exception if not found
716  name = parseRequiredAttribute<wxString>( aPin, "name" );
717  x = parseRequiredAttribute<ECOORD>( aPin, "x" );
718  y = parseRequiredAttribute<ECOORD>( aPin, "y" );
719 
720  visible = parseOptionalAttribute<wxString>( aPin, "visible" );
721  length = parseOptionalAttribute<wxString>( aPin, "length" );
722  direction = parseOptionalAttribute<wxString>( aPin, "direction" );
723  function = parseOptionalAttribute<wxString>( aPin, "function" );
724  swaplevel = parseOptionalAttribute<int>( aPin, "swaplevel" );
725  rot = parseOptionalAttribute<EROT>( aPin, "rot" );
726 }
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

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

Member Data Documentation

◆ direction

opt_wxString EPIN::direction

Definition at line 736 of file eagle_parser.h.

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

◆ function

opt_wxString EPIN::function

Definition at line 737 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadPin().

◆ length

opt_wxString EPIN::length

Definition at line 735 of file eagle_parser.h.

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

◆ name

wxString EPIN::name

Definition at line 730 of file eagle_parser.h.

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

◆ rot

opt_erot EPIN::rot

Definition at line 739 of file eagle_parser.h.

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

◆ swaplevel

opt_int EPIN::swaplevel

Definition at line 738 of file eagle_parser.h.

Referenced by EPIN().

◆ visible

opt_wxString EPIN::visible

Definition at line 734 of file eagle_parser.h.

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

◆ x

ECOORD EPIN::x

Definition at line 731 of file eagle_parser.h.

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

◆ y

ECOORD EPIN::y

Definition at line 732 of file eagle_parser.h.

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


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