KiCad PCB EDA Suite
EVIA Struct Reference

Eagle via. More...

Public Member Functions

 EVIA (CPTREE &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 342 of file eagle_plugin.cpp.

Constructor & Destructor Documentation

EVIA::EVIA ( CPTREE aVia)

Definition at line 354 of file eagle_plugin.cpp.

355 {
356  CPTREE& attribs = aVia.get_child( "<xmlattr>" );
357 
358  /*
359  <!ELEMENT via EMPTY>
360  <!ATTLIST via
361  x %Coord; #REQUIRED
362  y %Coord; #REQUIRED
363  extent %Extent; #REQUIRED
364  drill %Dimension; #REQUIRED
365  diameter %Dimension; "0"
366  shape %ViaShape; "round"
367  alwaysstop %Bool; "no"
368  >
369  */
370 
371  x = attribs.get<double>( "x" );
372  y = attribs.get<double>( "y" );
373 
374  string ext = attribs.get<string>( "extent" );
375 
376  sscanf( ext.c_str(), "%d-%d", &layer_front_most, &layer_back_most );
377 
378  drill = attribs.get<double>( "drill" );
379  diam = attribs.get_optional<double>( "diameter" );
380  shape = attribs.get_optional<string>( "shape" );
381 }
const PTREE CPTREE
Definition: eagle_plugin.h:63
double y
int layer_back_most
< extent
opt_double diam
opt_string shape
double drill
< inclusive
double x
int layer_front_most

Member Data Documentation

opt_double EVIA::diam

Definition at line 349 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().

double EVIA::drill

< inclusive

Definition at line 348 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().

int EVIA::layer_back_most

< extent

Definition at line 347 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().

int EVIA::layer_front_most

Definition at line 346 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().

opt_string EVIA::shape

Definition at line 350 of file eagle_plugin.cpp.

double EVIA::x

Definition at line 344 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().

double EVIA::y

Definition at line 345 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().


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