KiCad PCB EDA Suite
EDEVICE_SET Struct Reference

#include <eagle_parser.h>

Public Member Functions

 EDEVICE_SET (wxXmlNode *aDeviceSet)
 

Public Attributes

wxString name
 
opt_wxString prefix
 
opt_bool uservalue
 

Detailed Description

Definition at line 1035 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EDEVICE_SET()

EDEVICE_SET::EDEVICE_SET ( wxXmlNode *  aDeviceSet)

Definition at line 1071 of file eagle_parser.cpp.

1072 {
1073  /*
1074  <!ELEMENT deviceset (description?, gates, devices)>
1075  <!ATTLIST deviceset
1076  name %String; #REQUIRED
1077  prefix %String; ""
1078  uservalue %Bool; "no"
1079  >
1080  */
1081 
1082  name = parseRequiredAttribute<wxString>( aDeviceSet, wxT( "name" ) );
1083  prefix = parseOptionalAttribute<wxString>( aDeviceSet, wxT( "prefix" ) );
1084  uservalue = parseOptionalAttribute<bool>( aDeviceSet, wxT( "uservalue" ) );
1085 
1086  /* Russell: Parsing of devices and gates moved to sch_eagle_plugin.cpp
1087  *
1088  //TODO: description
1089 
1090  NODE_MAP aDeviceSetChildren = MapChildren(aDeviceSet);
1091  wxXmlNode* deviceNode = getChildrenNodes(aDeviceSetChildren, wxT( "device" ));
1092 
1093  while(deviceNode){
1094  devices.push_back(EDEVICE(deviceNode));
1095  deviceNode->GetNext();
1096  }
1097 
1098  wxXmlNode* gateNode = getChildrenNodes(aDeviceSetChildren, wxT( "gate" ));
1099 
1100  while(gateNode){
1101  gates.push_back(EGATE(gateNode));
1102  gateNode->GetNext();
1103  }
1104  */
1105 
1106 }
wxString name
opt_wxString prefix
opt_bool uservalue

References EELEMENT::name.

Member Data Documentation

◆ name

wxString EDEVICE_SET::name

Definition at line 1046 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ prefix

opt_wxString EDEVICE_SET::prefix

Definition at line 1047 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ uservalue

opt_bool EDEVICE_SET::uservalue

Definition at line 1048 of file eagle_parser.h.


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