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_string shape
 

Detailed Description

Eagle via.

Definition at line 546 of file eagle_parser.h.

Constructor & Destructor Documentation

EVIA::EVIA ( wxXmlNode *  aVia)

Definition at line 383 of file eagle_parser.cpp.

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

384 {
385  /*
386  <!ELEMENT via EMPTY>
387  <!ATTLIST via
388  x %Coord; #REQUIRED
389  y %Coord; #REQUIRED
390  extent %Extent; #REQUIRED
391  drill %Dimension; #REQUIRED
392  diameter %Dimension; "0"
393  shape %ViaShape; "round"
394  alwaysstop %Bool; "no"
395  >
396  */
397 
398  x = parseRequiredAttribute<ECOORD>( aVia, "x" );
399  y = parseRequiredAttribute<ECOORD>( aVia, "y" );
400 
401  string ext = parseRequiredAttribute<string>( aVia, "extent" );
402 
403  sscanf( ext.c_str(), "%d-%d", &layer_front_most, &layer_back_most );
404 
405  drill = parseRequiredAttribute<ECOORD>( aVia, "drill" );
406  diam = parseOptionalAttribute<ECOORD>( aVia, "diameter" );
407  shape = parseOptionalAttribute<string>( aVia, "shape" );
408 }
opt_ecoord diam
Definition: eagle_parser.h:553
ECOORD drill
< inclusive
Definition: eagle_parser.h:552
int layer_back_most
< extent
Definition: eagle_parser.h:551
opt_string shape
Definition: eagle_parser.h:554
ECOORD y
Definition: eagle_parser.h:549
ECOORD x
Definition: eagle_parser.h:548
int layer_front_most
Definition: eagle_parser.h:550

Member Data Documentation

opt_ecoord EVIA::diam

Definition at line 553 of file eagle_parser.h.

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

ECOORD EVIA::drill

< inclusive

Definition at line 552 of file eagle_parser.h.

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

int EVIA::layer_back_most

< extent

Definition at line 551 of file eagle_parser.h.

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

int EVIA::layer_front_most

Definition at line 550 of file eagle_parser.h.

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

opt_string EVIA::shape

Definition at line 554 of file eagle_parser.h.

Referenced by EVIA().

ECOORD EVIA::x

Definition at line 548 of file eagle_parser.h.

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

ECOORD EVIA::y

Definition at line 549 of file eagle_parser.h.

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


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