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

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::EGATE ( wxXmlNode *  aGate)

Definition at line 942 of file eagle_parser.cpp.

943 {
944  /*
945  * <!ELEMENT gate EMPTY>
946  * <!ATTLIST gate
947  * name %String; #REQUIRED
948  * symbol %String; #REQUIRED
949  * x %Coord; #REQUIRED
950  * y %Coord; #REQUIRED
951  * addlevel %GateAddLevel; "next"
952  * swaplevel %Int; "0"
953  * >
954  */
955 
956  name = parseRequiredAttribute<wxString>( aGate, "name" );
957  symbol = parseRequiredAttribute<wxString>( aGate, "symbol" );
958 
959  x = parseRequiredAttribute<ECOORD>( aGate, "x" );
960  y = parseRequiredAttribute<ECOORD>( aGate, "y" );
961 
962  opt_wxString stemp = parseOptionalAttribute<wxString>( aGate, "addlevel" );
963 
964  // (off | value | name | both)
965  if( stemp == "must" )
967  else if( stemp == "can" )
969  else if( stemp == "next" )
971  else if( stemp == "request" )
973  else if( stemp == "always" )
975  else
977 }
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

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

Member Data Documentation

◆ addlevel

opt_int EGATE::addlevel

Definition at line 968 of file eagle_parser.h.

◆ name

wxString EGATE::name

Definition at line 962 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ swaplevel

opt_int EGATE::swaplevel

Definition at line 969 of file eagle_parser.h.

◆ symbol

wxString EGATE::symbol

Definition at line 963 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ x

ECOORD EGATE::x

Definition at line 965 of file eagle_parser.h.

◆ y

ECOORD EGATE::y

Definition at line 966 of file eagle_parser.h.


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