KiCad PCB EDA Suite
EGATE Struct Reference

#include <eagle_parser.h>

Public Types

enum  {
  MUST, CAN, NEXT, REQUEST,
  ALWAYS
}
 

Public Member Functions

 EGATE (wxXmlNode *aGate)
 

Public Attributes

wxString name
 
wxString symbol
 
ECOORD x
 
ECOORD y
 
opt_int addlevel
 
opt_int swaplevel
 

Detailed Description

Definition at line 948 of file eagle_parser.h.

Member Enumeration Documentation

anonymous enum
Enumerator
MUST 
CAN 
NEXT 
REQUEST 
ALWAYS 

Definition at line 971 of file eagle_parser.h.

972  {
973  MUST,
974  CAN,
975  NEXT,
976  REQUEST,
977  ALWAYS
978  };

Constructor & Destructor Documentation

EGATE::EGATE ( wxXmlNode *  aGate)

Definition at line 952 of file eagle_parser.cpp.

References ALWAYS, CAN, MUST, EPAD_COMMON::name, NEXT, REQUEST, EPAD_COMMON::x, and EPAD_COMMON::y.

953 {
954  /*
955  * <!ELEMENT gate EMPTY>
956  * <!ATTLIST gate
957  * name %String; #REQUIRED
958  * symbol %String; #REQUIRED
959  * x %Coord; #REQUIRED
960  * y %Coord; #REQUIRED
961  * addlevel %GateAddLevel; "next"
962  * swaplevel %Int; "0"
963  * >
964  */
965 
966  name = parseRequiredAttribute<wxString>( aGate, "name" );
967  symbol = parseRequiredAttribute<wxString>( aGate, "symbol" );
968 
969  x = parseRequiredAttribute<ECOORD>( aGate, "x" );
970  y = parseRequiredAttribute<ECOORD>( aGate, "y" );
971 
972  opt_wxString stemp = parseOptionalAttribute<wxString>( aGate, "addlevel" );
973 
974  // (off | value | name | both)
975  if( stemp == "must" )
977  else if( stemp == "can" )
979  else if( stemp == "next" )
981  else if( stemp == "request" )
983  else if( stemp == "always" )
985  else
987 }
wxString symbol
Definition: eagle_parser.h:963
wxString name
Definition: eagle_parser.h:962
opt_int addlevel
Definition: eagle_parser.h:968
ECOORD x
Definition: eagle_parser.h:965
ECOORD y
Definition: eagle_parser.h:966

Member Data Documentation

opt_int EGATE::addlevel

Definition at line 968 of file eagle_parser.h.

wxString EGATE::name

Definition at line 962 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

opt_int EGATE::swaplevel

Definition at line 969 of file eagle_parser.h.

wxString EGATE::symbol

Definition at line 963 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

ECOORD EGATE::x

Definition at line 965 of file eagle_parser.h.

ECOORD EGATE::y

Definition at line 966 of file eagle_parser.h.


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