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

Constructor & Destructor Documentation

◆ EDEVICE_SET()

EDEVICE_SET::EDEVICE_SET ( wxXmlNode *  aDeviceSet)

Definition at line 1044 of file eagle_parser.cpp.

1045 {
1046  /*
1047  <!ELEMENT deviceset (description?, gates, devices)>
1048  <!ATTLIST deviceset
1049  name %String; #REQUIRED
1050  prefix %String; ""
1051  uservalue %Bool; "no"
1052  >
1053  */
1054 
1055  name = parseRequiredAttribute<wxString>(aDeviceSet, "name");
1056  prefix = parseOptionalAttribute<wxString>( aDeviceSet, "prefix" );
1057  uservalue = parseOptionalAttribute<bool>( aDeviceSet, "uservalue" );
1058 
1059  /* Russell: Parsing of devices and gates moved to sch_eagle_plugin.cpp
1060  *
1061  //TODO: description
1062 
1063  NODE_MAP aDeviceSetChildren = MapChildren(aDeviceSet);
1064  wxXmlNode* deviceNode = getChildrenNodes(aDeviceSetChildren, "device");
1065 
1066  while(deviceNode){
1067  devices.push_back(EDEVICE(deviceNode));
1068  deviceNode->GetNext();
1069  }
1070 
1071  wxXmlNode* gateNode = getChildrenNodes(aDeviceSetChildren, "gate");
1072 
1073  while(gateNode){
1074  gates.push_back(EGATE(gateNode));
1075  gateNode->GetNext();
1076  }
1077  */
1078 
1079 }
wxString name
opt_wxString prefix
opt_bool uservalue

References EELEMENT::name.

Member Data Documentation

◆ name

wxString EDEVICE_SET::name

Definition at line 1034 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ prefix

opt_wxString EDEVICE_SET::prefix

Definition at line 1035 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ uservalue

opt_bool EDEVICE_SET::uservalue

Definition at line 1036 of file eagle_parser.h.


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