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

Constructor & Destructor Documentation

◆ ELAYER()

ELAYER::ELAYER ( wxXmlNode *  aLayer)

Definition at line 836 of file eagle_parser.cpp.

837 {
838  /*
839  <!ELEMENT layer EMPTY>
840  <!ATTLIST layer
841  number %Layer; #REQUIRED
842  name %String; #REQUIRED
843  color %Int; #REQUIRED
844  fill %Int; #REQUIRED
845  visible %Bool; "yes"
846  active %Bool; "yes"
847  >
848  */
849 
850  number = parseRequiredAttribute<int>( aLayer, "number" );
851  name = parseRequiredAttribute<wxString>( aLayer, "name" );
852  color = parseRequiredAttribute<int>( aLayer, "color" );
853  fill = 1; // Temporary value.
854  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
855  active = parseOptionalAttribute<bool>( aLayer, "active" );
856 }
opt_bool visible
Definition: eagle_parser.h:819
int number
Definition: eagle_parser.h:815
int fill
Definition: eagle_parser.h:818
wxString name
Definition: eagle_parser.h:816
int color
Definition: eagle_parser.h:817
opt_bool active
Definition: eagle_parser.h:820

References color, and EELEMENT::name.

Member Data Documentation

◆ active

opt_bool ELAYER::active

Definition at line 820 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

◆ color

int ELAYER::color

Definition at line 817 of file eagle_parser.h.

◆ fill

int ELAYER::fill

Definition at line 818 of file eagle_parser.h.

◆ name

wxString ELAYER::name

Definition at line 816 of file eagle_parser.h.

◆ number

int ELAYER::number

Definition at line 815 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

◆ visible

opt_bool ELAYER::visible

Definition at line 819 of file eagle_parser.h.


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