KiCad PCB EDA Suite
EVIA Struct Reference

Eagle via. More...

#include <eagle_parser.h>

Public Member Functions

 EVIA (wxXmlNode *aVia)
 

Public Attributes

ECOORD x
 
ECOORD y
 
int layer_front_most
 
int layer_back_most
 < extent More...
 
ECOORD drill
 < inclusive More...
 
opt_ecoord diam
 
opt_wxString shape
 

Detailed Description

Eagle via.

Definition at line 547 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EVIA()

EVIA::EVIA ( wxXmlNode *  aVia)

Definition at line 411 of file eagle_parser.cpp.

412 {
413  /*
414  <!ELEMENT via EMPTY>
415  <!ATTLIST via
416  x %Coord; #REQUIRED
417  y %Coord; #REQUIRED
418  extent %Extent; #REQUIRED
419  drill %Dimension; #REQUIRED
420  diameter %Dimension; "0"
421  shape %ViaShape; "round"
422  alwaysstop %Bool; "no"
423  >
424  */
425 
426  x = parseRequiredAttribute<ECOORD>( aVia, wxT( "x" ) );
427  y = parseRequiredAttribute<ECOORD>( aVia, wxT( "y" ) );
428 
429  wxString ext = parseRequiredAttribute<wxString>( aVia, wxT( "extent" ) );
430  sscanf( ext.c_str(), "%d-%d", &layer_front_most, &layer_back_most );
431 
432  drill = parseRequiredAttribute<ECOORD>( aVia, wxT( "drill" ) );
433  diam = parseOptionalAttribute<ECOORD>( aVia, wxT( "diameter" ) );
434  shape = parseOptionalAttribute<wxString>( aVia, wxT( "shape" ) );
435 }
opt_ecoord diam
Definition: eagle_parser.h:554
ECOORD drill
< inclusive
Definition: eagle_parser.h:553
opt_wxString shape
Definition: eagle_parser.h:555
int layer_back_most
< extent
Definition: eagle_parser.h:552
ECOORD y
Definition: eagle_parser.h:550
ECOORD x
Definition: eagle_parser.h:549
int layer_front_most
Definition: eagle_parser.h:551

References diam, drill, layer_back_most, layer_front_most, shape, x, and y.

Member Data Documentation

◆ diam

opt_ecoord EVIA::diam

Definition at line 554 of file eagle_parser.h.

Referenced by EVIA(), and EAGLE_PLUGIN::loadSignals().

◆ drill

ECOORD EVIA::drill

< inclusive

Definition at line 553 of file eagle_parser.h.

Referenced by EVIA(), and EAGLE_PLUGIN::loadSignals().

◆ layer_back_most

int EVIA::layer_back_most

< extent

Definition at line 552 of file eagle_parser.h.

Referenced by EVIA(), and EAGLE_PLUGIN::loadSignals().

◆ layer_front_most

int EVIA::layer_front_most

Definition at line 551 of file eagle_parser.h.

Referenced by EVIA(), and EAGLE_PLUGIN::loadSignals().

◆ shape

opt_wxString EVIA::shape

Definition at line 555 of file eagle_parser.h.

Referenced by EVIA().

◆ x

ECOORD EVIA::x

Definition at line 549 of file eagle_parser.h.

Referenced by EVIA(), and EAGLE_PLUGIN::loadSignals().

◆ y

ECOORD EVIA::y

Definition at line 550 of file eagle_parser.h.

Referenced by EVIA(), and EAGLE_PLUGIN::loadSignals().


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