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

Constructor & Destructor Documentation

◆ EINSTANCE()

EINSTANCE::EINSTANCE ( wxXmlNode *  aInstance)

Definition at line 934 of file eagle_parser.cpp.

935 {
936  /*
937  * <!ELEMENT instance (attribute)*>
938  * <!ATTLIST instance
939  * part %String; #REQUIRED
940  * gate %String; #REQUIRED
941  * x %Coord; #REQUIRED
942  * y %Coord; #REQUIRED
943  * smashed %Bool; "no"
944  * rot %Rotation; "R0"
945  * >
946  */
947  part = parseRequiredAttribute<wxString>( aInstance, "part" );
948  gate = parseRequiredAttribute<wxString>( aInstance, "gate" );
949 
950  x = parseRequiredAttribute<ECOORD>( aInstance, "x" );
951  y = parseRequiredAttribute<ECOORD>( aInstance, "y" );
952 
953  // optional
954  smashed = parseOptionalAttribute<bool>( aInstance, "smashed" );
955  rot = parseOptionalAttribute<EROT>( aInstance, "rot" );
956 }
wxString part
Definition: eagle_parser.h:938
ECOORD x
Definition: eagle_parser.h:940
wxString gate
Definition: eagle_parser.h:939
opt_bool smashed
Definition: eagle_parser.h:942
opt_erot rot
Definition: eagle_parser.h:943
ECOORD y
Definition: eagle_parser.h:941

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

Member Data Documentation

◆ gate

wxString EINSTANCE::gate

Definition at line 939 of file eagle_parser.h.

◆ part

wxString EINSTANCE::part

Definition at line 938 of file eagle_parser.h.

◆ rot

opt_erot EINSTANCE::rot

Definition at line 943 of file eagle_parser.h.

◆ smashed

opt_bool EINSTANCE::smashed

Definition at line 942 of file eagle_parser.h.

◆ x

ECOORD EINSTANCE::x

Definition at line 940 of file eagle_parser.h.

◆ y

ECOORD EINSTANCE::y

Definition at line 941 of file eagle_parser.h.


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