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 ( wxXmlNode *  aDeviceSet)

Definition at line 1037 of file eagle_parser.cpp.

References EPAD_COMMON::name.

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

Member Data Documentation

wxString EDEVICE_SET::name

Definition at line 1033 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

opt_wxString EDEVICE_SET::prefix

Definition at line 1034 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

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: