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

Constructor & Destructor Documentation

◆ EDEVICE_SET()

EDEVICE_SET::EDEVICE_SET ( wxXmlNode *  aDeviceSet)

Definition at line 1027 of file eagle_parser.cpp.

1028 {
1029  /*
1030  <!ELEMENT deviceset (description?, gates, devices)>
1031  <!ATTLIST deviceset
1032  name %String; #REQUIRED
1033  prefix %String; ""
1034  uservalue %Bool; "no"
1035  >
1036  */
1037 
1038  name = parseRequiredAttribute<wxString>(aDeviceSet, "name");
1039  prefix = parseOptionalAttribute<wxString>( aDeviceSet, "prefix" );
1040  uservalue = parseOptionalAttribute<bool>( aDeviceSet, "uservalue" );
1041 
1042  /* Russell: Parsing of devices and gates moved to sch_eagle_plugin.cpp
1043  *
1044  //TODO: description
1045 
1046  NODE_MAP aDeviceSetChildren = MapChildren(aDeviceSet);
1047  wxXmlNode* deviceNode = getChildrenNodes(aDeviceSetChildren, "device");
1048 
1049  while(deviceNode){
1050  devices.push_back(EDEVICE(deviceNode));
1051  deviceNode->GetNext();
1052  }
1053 
1054  wxXmlNode* gateNode = getChildrenNodes(aDeviceSetChildren, "gate");
1055 
1056  while(gateNode){
1057  gates.push_back(EGATE(gateNode));
1058  gateNode->GetNext();
1059  }
1060  */
1061 
1062 }
wxString name
opt_wxString prefix
opt_bool uservalue

References EELEMENT::name.

Member Data Documentation

◆ name

wxString EDEVICE_SET::name

Definition at line 1033 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ prefix

opt_wxString EDEVICE_SET::prefix

Definition at line 1034 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ uservalue

opt_bool EDEVICE_SET::uservalue

Definition at line 1035 of file eagle_parser.h.


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