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

Constructor & Destructor Documentation

ELAYER::ELAYER ( wxXmlNode *  aLayer)

Definition at line 844 of file eagle_parser.cpp.

References color, and name.

845 {
846  /*
847  <!ELEMENT layer EMPTY>
848  <!ATTLIST layer
849  number %Layer; #REQUIRED
850  name %String; #REQUIRED
851  color %Int; #REQUIRED
852  fill %Int; #REQUIRED
853  visible %Bool; "yes"
854  active %Bool; "yes"
855  >
856  */
857 
858  number = parseRequiredAttribute<int>( aLayer, "number" );
859  name = parseRequiredAttribute<wxString>( aLayer, "name" );
860  color = parseRequiredAttribute<int>( aLayer, "color" );
861  fill = 1; // Temporary value.
862  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
863  active = parseOptionalAttribute<bool>( aLayer, "active" );
864 }
opt_bool visible
Definition: eagle_parser.h:814
int number
Definition: eagle_parser.h:810
int fill
Definition: eagle_parser.h:813
wxString name
Definition: eagle_parser.h:811
int color
Definition: eagle_parser.h:812
opt_bool active
Definition: eagle_parser.h:815

Member Data Documentation

opt_bool ELAYER::active

Definition at line 815 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

int ELAYER::color

Definition at line 812 of file eagle_parser.h.

int ELAYER::fill

Definition at line 813 of file eagle_parser.h.

wxString ELAYER::name

Definition at line 811 of file eagle_parser.h.

int ELAYER::number

Definition at line 810 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

opt_bool ELAYER::visible

Definition at line 814 of file eagle_parser.h.


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