KiCad PCB EDA Suite
ECLASS Struct Reference

#include <eagle_parser.h>

Public Member Functions

 ECLASS (wxXmlNode *aClass)
 

Public Attributes

wxString number
 
wxString name
 
std::map< wxString, ECOORDclearanceMap
 

Detailed Description

Definition at line 1057 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ ECLASS()

ECLASS::ECLASS ( wxXmlNode *  aClass)

Definition at line 1109 of file eagle_parser.cpp.

1110 {
1111  number = parseRequiredAttribute<wxString>( aClass, wxT( "number" ) );
1112  name = parseRequiredAttribute<wxString>( aClass, wxT( "name" ) );
1113 
1114  for( wxXmlNode* child = aClass->GetChildren(); child; child = child->GetNext() )
1115  {
1116  if( child->GetName() == wxT( "clearance" ) )
1117  {
1118  wxString to = parseRequiredAttribute<wxString>( child, wxT( "class" ) );
1119  ECOORD value = parseRequiredAttribute<ECOORD>( child, wxT( "value" ) );
1120 
1121  clearanceMap[to] = value;
1122  }
1123  }
1124 }
wxString name
std::map< wxString, ECOORD > clearanceMap
wxString number

References EELEMENT::name, and EELEMENT::value.

Member Data Documentation

◆ clearanceMap

std::map<wxString, ECOORD> ECLASS::clearanceMap

Definition at line 1061 of file eagle_parser.h.

◆ name

wxString ECLASS::name

Definition at line 1060 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadClasses().

◆ number

wxString ECLASS::number

Definition at line 1059 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadClasses().


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