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

Constructor & Destructor Documentation

◆ EINSTANCE()

EINSTANCE::EINSTANCE ( wxXmlNode *  aInstance)

Definition at line 917 of file eagle_parser.cpp.

918 {
919  /*
920  * <!ELEMENT instance (attribute)*>
921  * <!ATTLIST instance
922  * part %String; #REQUIRED
923  * gate %String; #REQUIRED
924  * x %Coord; #REQUIRED
925  * y %Coord; #REQUIRED
926  * smashed %Bool; "no"
927  * rot %Rotation; "R0"
928  * >
929  */
930  part = parseRequiredAttribute<wxString>( aInstance, "part" );
931  gate = parseRequiredAttribute<wxString>( aInstance, "gate" );
932 
933  x = parseRequiredAttribute<ECOORD>( aInstance, "x" );
934  y = parseRequiredAttribute<ECOORD>( aInstance, "y" );
935 
936  // optional
937  smashed = parseOptionalAttribute<bool>( aInstance, "smashed" );
938  rot = parseOptionalAttribute<EROT>( aInstance, "rot" );
939 }
wxString part
Definition: eagle_parser.h:937
ECOORD x
Definition: eagle_parser.h:939
wxString gate
Definition: eagle_parser.h:938
opt_bool smashed
Definition: eagle_parser.h:941
opt_erot rot
Definition: eagle_parser.h:942
ECOORD y
Definition: eagle_parser.h:940

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

Member Data Documentation

◆ gate

wxString EINSTANCE::gate

Definition at line 938 of file eagle_parser.h.

◆ part

wxString EINSTANCE::part

Definition at line 937 of file eagle_parser.h.

◆ rot

opt_erot EINSTANCE::rot

Definition at line 942 of file eagle_parser.h.

◆ smashed

opt_bool EINSTANCE::smashed

Definition at line 941 of file eagle_parser.h.

◆ x

ECOORD EINSTANCE::x

Definition at line 939 of file eagle_parser.h.

◆ y

ECOORD EINSTANCE::y

Definition at line 940 of file eagle_parser.h.


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