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 801 of file eagle_parser.h.

Constructor & Destructor Documentation

ELAYER::ELAYER ( wxXmlNode *  aLayer)

Definition at line 814 of file eagle_parser.cpp.

References color, and EELEMENT::name.

815 {
816  /*
817  <!ELEMENT layer EMPTY>
818  <!ATTLIST layer
819  number %Layer; #REQUIRED
820  name %String; #REQUIRED
821  color %Int; #REQUIRED
822  fill %Int; #REQUIRED
823  visible %Bool; "yes"
824  active %Bool; "yes"
825  >
826  */
827 
828  number = parseRequiredAttribute<int>( aLayer, "number" );
829  name = parseRequiredAttribute<string>( aLayer, "name" );
830  color = parseRequiredAttribute<int>( aLayer, "color" );
831  fill = 1; // Temporary value.
832  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
833  active = parseOptionalAttribute<bool>( aLayer, "active" );
834 }
opt_bool visible
Definition: eagle_parser.h:807
int number
Definition: eagle_parser.h:803
int fill
Definition: eagle_parser.h:806
string name
Definition: eagle_parser.h:804
int color
Definition: eagle_parser.h:805
opt_bool active
Definition: eagle_parser.h:808

Member Data Documentation

opt_bool ELAYER::active

Definition at line 808 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

int ELAYER::color

Definition at line 805 of file eagle_parser.h.

int ELAYER::fill

Definition at line 806 of file eagle_parser.h.

string ELAYER::name

Definition at line 804 of file eagle_parser.h.

int ELAYER::number

Definition at line 803 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

opt_bool ELAYER::visible

Definition at line 807 of file eagle_parser.h.


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