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 ( wxXmlNode *  aInstance)

Definition at line 927 of file eagle_parser.cpp.

References EPAD_COMMON::rot, EPAD_COMMON::x, and EPAD_COMMON::y.

928 {
929  /*
930  * <!ELEMENT instance (attribute)*>
931  * <!ATTLIST instance
932  * part %String; #REQUIRED
933  * gate %String; #REQUIRED
934  * x %Coord; #REQUIRED
935  * y %Coord; #REQUIRED
936  * smashed %Bool; "no"
937  * rot %Rotation; "R0"
938  * >
939  */
940  part = parseRequiredAttribute<wxString>( aInstance, "part" );
941  gate = parseRequiredAttribute<wxString>( aInstance, "gate" );
942 
943  x = parseRequiredAttribute<ECOORD>( aInstance, "x" );
944  y = parseRequiredAttribute<ECOORD>( aInstance, "y" );
945 
946  // optional
947  smashed = parseOptionalAttribute<bool>( aInstance, "smashed" );
948  rot = parseOptionalAttribute<EROT>( aInstance, "rot" );
949 }
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

Member Data Documentation

wxString EINSTANCE::gate

Definition at line 938 of file eagle_parser.h.

wxString EINSTANCE::part

Definition at line 937 of file eagle_parser.h.

opt_erot EINSTANCE::rot

Definition at line 942 of file eagle_parser.h.

opt_bool EINSTANCE::smashed

Definition at line 941 of file eagle_parser.h.

ECOORD EINSTANCE::x

Definition at line 939 of file eagle_parser.h.

ECOORD EINSTANCE::y

Definition at line 940 of file eagle_parser.h.


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