KiCad PCB EDA Suite
ELAYER Struct Reference

#include <eagle_parser.h>

Public Member Functions

 ELAYER (wxXmlNode *aLayer)
 

Public Attributes

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

Detailed Description

Definition at line 830 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ ELAYER()

ELAYER::ELAYER ( wxXmlNode *  aLayer)

Definition at line 972 of file eagle_parser.cpp.

973{
974 /*
975 <!ELEMENT layer EMPTY>
976 <!ATTLIST layer
977 number %Layer; #REQUIRED
978 name %String; #REQUIRED
979 color %Int; #REQUIRED
980 fill %Int; #REQUIRED
981 visible %Bool; "yes"
982 active %Bool; "yes"
983 >
984 */
985
986 number = parseRequiredAttribute<int>( aLayer, "number" );
987 name = parseRequiredAttribute<wxString>( aLayer, "name" );
988 color = parseRequiredAttribute<int>( aLayer, "color" );
989 fill = 1; // Temporary value.
990 visible = parseOptionalAttribute<bool>( aLayer, "visible" );
991 active = parseOptionalAttribute<bool>( aLayer, "active" );
992}
wxString name
Definition: eagle_parser.h:833
opt_bool visible
Definition: eagle_parser.h:836
opt_bool active
Definition: eagle_parser.h:837
int color
Definition: eagle_parser.h:834
int fill
Definition: eagle_parser.h:835
int number
Definition: eagle_parser.h:832

References color, and EELEMENT::name.

Member Data Documentation

◆ active

opt_bool ELAYER::active

Definition at line 837 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

◆ color

int ELAYER::color

Definition at line 834 of file eagle_parser.h.

◆ fill

int ELAYER::fill

Definition at line 835 of file eagle_parser.h.

◆ name

wxString ELAYER::name

◆ number

int ELAYER::number

◆ visible

opt_bool ELAYER::visible

Definition at line 836 of file eagle_parser.h.


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