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 813 of file eagle_parser.cpp.

References color, and EELEMENT::name.

814 {
815  /*
816  <!ELEMENT layer EMPTY>
817  <!ATTLIST layer
818  number %Layer; #REQUIRED
819  name %String; #REQUIRED
820  color %Int; #REQUIRED
821  fill %Int; #REQUIRED
822  visible %Bool; "yes"
823  active %Bool; "yes"
824  >
825  */
826 
827  number = parseRequiredAttribute<int>( aLayer, "number" );
828  name = parseRequiredAttribute<string>( aLayer, "name" );
829  color = parseRequiredAttribute<int>( aLayer, "color" );
830  fill = 1; // Temporary value.
831  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
832  active = parseOptionalAttribute<bool>( aLayer, "active" );
833 }
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: