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

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