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 ( wxXmlNode *  aLayer)

Definition at line 846 of file eagle_parser.cpp.

References color, and EPAD_COMMON::name.

847 {
848  /*
849  <!ELEMENT layer EMPTY>
850  <!ATTLIST layer
851  number %Layer; #REQUIRED
852  name %String; #REQUIRED
853  color %Int; #REQUIRED
854  fill %Int; #REQUIRED
855  visible %Bool; "yes"
856  active %Bool; "yes"
857  >
858  */
859 
860  number = parseRequiredAttribute<int>( aLayer, "number" );
861  name = parseRequiredAttribute<wxString>( aLayer, "name" );
862  color = parseRequiredAttribute<int>( aLayer, "color" );
863  fill = 1; // Temporary value.
864  visible = parseOptionalAttribute<bool>( aLayer, "visible" );
865  active = parseOptionalAttribute<bool>( aLayer, "active" );
866 }
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

Member Data Documentation

opt_bool ELAYER::active

Definition at line 820 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

int ELAYER::color

Definition at line 817 of file eagle_parser.h.

int ELAYER::fill

Definition at line 818 of file eagle_parser.h.

wxString ELAYER::name

Definition at line 816 of file eagle_parser.h.

int ELAYER::number

Definition at line 815 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadLayerDefs().

opt_bool ELAYER::visible

Definition at line 819 of file eagle_parser.h.


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