KiCad PCB EDA Suite
ELAYER Struct Reference

#include <eagle_parser.h>

Public Member Functions

 ELAYER (wxXmlNode *aLayer)
 

Public Attributes

int number
 
string name
 
int color
 
int fill
 
opt_bool visible
 
opt_bool active
 

Detailed Description

Definition at line 659 of file eagle_parser.h.

Constructor & Destructor Documentation

ELAYER::ELAYER ( wxXmlNode *  aLayer)

Definition at line 575 of file eagle_parser.cpp.

References color, and EELEMENT::name.

576 {
577  /*
578  <!ELEMENT layer EMPTY>
579  <!ATTLIST layer
580  number %Layer; #REQUIRED
581  name %String; #REQUIRED
582  color %Int; #REQUIRED
583  fill %Int; #REQUIRED
584  visible %Bool; "yes"
585  active %Bool; "yes"
586  >
587  */
588 
589  number = parseRequiredAttribute<int>( aLayer, "number" );
590  name = parseRequiredAttribute<string>( aLayer, "name" );
591  color = parseRequiredAttribute<int>( aLayer, "color" );
592  fill = 1; // Temporary value.
593  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
594  active = parseOptionalAttribute<bool>( aLayer, "active" );
595 }
opt_bool visible
Definition: eagle_parser.h:665
int number
Definition: eagle_parser.h:661
int fill
Definition: eagle_parser.h:664
string name
Definition: eagle_parser.h:662
int color
Definition: eagle_parser.h:663
opt_bool active
Definition: eagle_parser.h:666

Member Data Documentation

opt_bool ELAYER::active

Definition at line 666 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

int ELAYER::color

Definition at line 663 of file eagle_parser.h.

int ELAYER::fill

Definition at line 664 of file eagle_parser.h.

string ELAYER::name

Definition at line 662 of file eagle_parser.h.

int ELAYER::number

Definition at line 661 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

opt_bool ELAYER::visible

Definition at line 665 of file eagle_parser.h.


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