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

Constructor & Destructor Documentation

◆ ELAYER()

ELAYER::ELAYER ( wxXmlNode *  aLayer)

Definition at line 878 of file eagle_parser.cpp.

879 {
880  /*
881  <!ELEMENT layer EMPTY>
882  <!ATTLIST layer
883  number %Layer; #REQUIRED
884  name %String; #REQUIRED
885  color %Int; #REQUIRED
886  fill %Int; #REQUIRED
887  visible %Bool; "yes"
888  active %Bool; "yes"
889  >
890  */
891 
892  number = parseRequiredAttribute<int>( aLayer, "number" );
893  name = parseRequiredAttribute<wxString>( aLayer, "name" );
894  color = parseRequiredAttribute<int>( aLayer, "color" );
895  fill = 1; // Temporary value.
896  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
897  active = parseOptionalAttribute<bool>( aLayer, "active" );
898 }
opt_bool visible
Definition: eagle_parser.h:832
int number
Definition: eagle_parser.h:828
int fill
Definition: eagle_parser.h:831
wxString name
Definition: eagle_parser.h:829
int color
Definition: eagle_parser.h:830
opt_bool active
Definition: eagle_parser.h:833

References color, and EELEMENT::name.

Member Data Documentation

◆ active

opt_bool ELAYER::active

Definition at line 833 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

◆ color

int ELAYER::color

Definition at line 830 of file eagle_parser.h.

◆ fill

int ELAYER::fill

Definition at line 831 of file eagle_parser.h.

◆ name

wxString ELAYER::name

◆ number

int ELAYER::number

◆ visible

opt_bool ELAYER::visible

Definition at line 832 of file eagle_parser.h.


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