KiCad PCB EDA Suite
EINSTANCE Struct Reference

#include <eagle_parser.h>

Public Member Functions

 EINSTANCE (wxXmlNode *aInstance)
 

Public Attributes

wxString part
 
wxString gate
 
ECOORD x
 
ECOORD y
 
opt_bool smashed
 
opt_erot rot
 

Detailed Description

Definition at line 936 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EINSTANCE()

EINSTANCE::EINSTANCE ( wxXmlNode *  aInstance)

Definition at line 961 of file eagle_parser.cpp.

962 {
963  /*
964  * <!ELEMENT instance (attribute)*>
965  * <!ATTLIST instance
966  * part %String; #REQUIRED
967  * gate %String; #REQUIRED
968  * x %Coord; #REQUIRED
969  * y %Coord; #REQUIRED
970  * smashed %Bool; "no"
971  * rot %Rotation; "R0"
972  * >
973  */
974  part = parseRequiredAttribute<wxString>( aInstance, wxT( "part" ) );
975  gate = parseRequiredAttribute<wxString>( aInstance, wxT( "gate" ) );
976 
977  x = parseRequiredAttribute<ECOORD>( aInstance, wxT( "x" ) );
978  y = parseRequiredAttribute<ECOORD>( aInstance, wxT( "y" ) );
979 
980  // optional
981  smashed = parseOptionalAttribute<bool>( aInstance, wxT( "smashed" ) );
982  rot = parseOptionalAttribute<EROT>( aInstance, wxT( "rot" ) );
983 }
wxString part
Definition: eagle_parser.h:950
ECOORD x
Definition: eagle_parser.h:952
wxString gate
Definition: eagle_parser.h:951
opt_bool smashed
Definition: eagle_parser.h:954
opt_erot rot
Definition: eagle_parser.h:955
ECOORD y
Definition: eagle_parser.h:953

References EELEMENT::rot, EELEMENT::smashed, EELEMENT::x, and EELEMENT::y.

Member Data Documentation

◆ gate

wxString EINSTANCE::gate

Definition at line 951 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadInstance().

◆ part

wxString EINSTANCE::part

Definition at line 950 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadInstance().

◆ rot

opt_erot EINSTANCE::rot

Definition at line 955 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadInstance().

◆ smashed

opt_bool EINSTANCE::smashed

Definition at line 954 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadInstance().

◆ x

ECOORD EINSTANCE::x

Definition at line 952 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadInstance().

◆ y

ECOORD EINSTANCE::y

Definition at line 953 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadInstance().


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