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

882 {
883  /*
884  <!ELEMENT layer EMPTY>
885  <!ATTLIST layer
886  number %Layer; #REQUIRED
887  name %String; #REQUIRED
888  color %Int; #REQUIRED
889  fill %Int; #REQUIRED
890  visible %Bool; "yes"
891  active %Bool; "yes"
892  >
893  */
894 
895  number = parseRequiredAttribute<int>( aLayer, wxT( "number" ) );
896  name = parseRequiredAttribute<wxString>( aLayer, wxT( "name" ) );
897  color = parseRequiredAttribute<int>( aLayer, wxT( "color" ) );
898  fill = 1; // Temporary value.
899  visible = parseOptionalAttribute<bool>( aLayer, wxT( "visible" ) );
900  active = parseOptionalAttribute<bool>( aLayer, wxT( "active" ) );
901 }
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: