KiCad PCB EDA Suite
EVIA Struct Reference

Eagle via. More...

#include <eagle_parser.h>

Public Member Functions

 EVIA (wxXmlNode *aVia)
 

Public Attributes

double x
 
double y
 
int layer_front_most
 
int layer_back_most
 < extent More...
 
double drill
 < inclusive More...
 
opt_double diam
 
opt_string shape
 

Detailed Description

Eagle via.

Definition at line 426 of file eagle_parser.h.

Constructor & Destructor Documentation

EVIA::EVIA ( wxXmlNode *  aVia)

Definition at line 185 of file eagle_parser.cpp.

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

186 {
187  /*
188  <!ELEMENT via EMPTY>
189  <!ATTLIST via
190  x %Coord; #REQUIRED
191  y %Coord; #REQUIRED
192  extent %Extent; #REQUIRED
193  drill %Dimension; #REQUIRED
194  diameter %Dimension; "0"
195  shape %ViaShape; "round"
196  alwaysstop %Bool; "no"
197  >
198  */
199 
200  x = parseRequiredAttribute<double>( aVia, "x" );
201  y = parseRequiredAttribute<double>( aVia, "y" );
202 
203  string ext = parseRequiredAttribute<string>( aVia, "extent" );
204 
205  sscanf( ext.c_str(), "%d-%d", &layer_front_most, &layer_back_most );
206 
207  drill = parseRequiredAttribute<double>( aVia, "drill" );
208  diam = parseOptionalAttribute<double>( aVia, "diameter" );
209  shape = parseOptionalAttribute<string>( aVia, "shape" );
210 }
double y
Definition: eagle_parser.h:429
int layer_back_most
< extent
Definition: eagle_parser.h:431
opt_double diam
Definition: eagle_parser.h:433
opt_string shape
Definition: eagle_parser.h:434
double drill
< inclusive
Definition: eagle_parser.h:432
double x
Definition: eagle_parser.h:428
int layer_front_most
Definition: eagle_parser.h:430

Member Data Documentation

opt_double EVIA::diam

Definition at line 433 of file eagle_parser.h.

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

double EVIA::drill

< inclusive

Definition at line 432 of file eagle_parser.h.

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

int EVIA::layer_back_most

< extent

Definition at line 431 of file eagle_parser.h.

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

int EVIA::layer_front_most

Definition at line 430 of file eagle_parser.h.

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

opt_string EVIA::shape

Definition at line 434 of file eagle_parser.h.

Referenced by EVIA().

double EVIA::x

Definition at line 428 of file eagle_parser.h.

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

double EVIA::y

Definition at line 429 of file eagle_parser.h.

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


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