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

Constructor & Destructor Documentation

◆ ELAYER()

ELAYER::ELAYER ( wxXmlNode *  aLayer)

Definition at line 853 of file eagle_parser.cpp.

854 {
855  /*
856  <!ELEMENT layer EMPTY>
857  <!ATTLIST layer
858  number %Layer; #REQUIRED
859  name %String; #REQUIRED
860  color %Int; #REQUIRED
861  fill %Int; #REQUIRED
862  visible %Bool; "yes"
863  active %Bool; "yes"
864  >
865  */
866 
867  number = parseRequiredAttribute<int>( aLayer, "number" );
868  name = parseRequiredAttribute<wxString>( aLayer, "name" );
869  color = parseRequiredAttribute<int>( aLayer, "color" );
870  fill = 1; // Temporary value.
871  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
872  active = parseOptionalAttribute<bool>( aLayer, "active" );
873 }
opt_bool visible
Definition: eagle_parser.h:820
int number
Definition: eagle_parser.h:816
int fill
Definition: eagle_parser.h:819
wxString name
Definition: eagle_parser.h:817
int color
Definition: eagle_parser.h:818
opt_bool active
Definition: eagle_parser.h:821

References color, and EELEMENT::name.

Member Data Documentation

◆ active

opt_bool ELAYER::active

Definition at line 821 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

◆ color

int ELAYER::color

Definition at line 818 of file eagle_parser.h.

◆ fill

int ELAYER::fill

Definition at line 819 of file eagle_parser.h.

◆ name

wxString ELAYER::name

Definition at line 817 of file eagle_parser.h.

◆ number

int ELAYER::number

Definition at line 816 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

◆ visible

opt_bool ELAYER::visible

Definition at line 820 of file eagle_parser.h.


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