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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MUST 
CAN 
NEXT 
REQUEST 
ALWAYS 

Definition at line 972 of file eagle_parser.h.

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

Constructor & Destructor Documentation

◆ EGATE()

EGATE::EGATE ( wxXmlNode *  aGate)

Definition at line 952 of file eagle_parser.cpp.

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:964
wxString name
Definition: eagle_parser.h:963
opt_int addlevel
Definition: eagle_parser.h:969
ECOORD x
Definition: eagle_parser.h:966
ECOORD y
Definition: eagle_parser.h:967

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

Member Data Documentation

◆ addlevel

opt_int EGATE::addlevel

Definition at line 969 of file eagle_parser.h.

◆ name

wxString EGATE::name

Definition at line 963 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ swaplevel

opt_int EGATE::swaplevel

Definition at line 970 of file eagle_parser.h.

◆ symbol

wxString EGATE::symbol

Definition at line 964 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ x

ECOORD EGATE::x

Definition at line 966 of file eagle_parser.h.

◆ y

ECOORD EGATE::y

Definition at line 967 of file eagle_parser.h.


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