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

960 {
961  /*
962  * <!ELEMENT instance (attribute)*>
963  * <!ATTLIST instance
964  * part %String; #REQUIRED
965  * gate %String; #REQUIRED
966  * x %Coord; #REQUIRED
967  * y %Coord; #REQUIRED
968  * smashed %Bool; "no"
969  * rot %Rotation; "R0"
970  * >
971  */
972  part = parseRequiredAttribute<wxString>( aInstance, "part" );
973  gate = parseRequiredAttribute<wxString>( aInstance, "gate" );
974 
975  x = parseRequiredAttribute<ECOORD>( aInstance, "x" );
976  y = parseRequiredAttribute<ECOORD>( aInstance, "y" );
977 
978  // optional
979  smashed = parseOptionalAttribute<bool>( aInstance, "smashed" );
980  rot = parseOptionalAttribute<EROT>( aInstance, "rot" );
981 }
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.

◆ part

wxString EINSTANCE::part

Definition at line 950 of file eagle_parser.h.

◆ rot

opt_erot EINSTANCE::rot

Definition at line 955 of file eagle_parser.h.

◆ smashed

opt_bool EINSTANCE::smashed

Definition at line 954 of file eagle_parser.h.

◆ x

ECOORD EINSTANCE::x

Definition at line 952 of file eagle_parser.h.

◆ y

ECOORD EINSTANCE::y

Definition at line 953 of file eagle_parser.h.


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