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 959 of file eagle_parser.cpp.

960 {
961  /*
962  * <!ELEMENT gate EMPTY>
963  * <!ATTLIST gate
964  * name %String; #REQUIRED
965  * symbol %String; #REQUIRED
966  * x %Coord; #REQUIRED
967  * y %Coord; #REQUIRED
968  * addlevel %GateAddLevel; "next"
969  * swaplevel %Int; "0"
970  * >
971  */
972 
973  name = parseRequiredAttribute<wxString>( aGate, "name" );
974  symbol = parseRequiredAttribute<wxString>( aGate, "symbol" );
975 
976  x = parseRequiredAttribute<ECOORD>( aGate, "x" );
977  y = parseRequiredAttribute<ECOORD>( aGate, "y" );
978 
979  opt_wxString stemp = parseOptionalAttribute<wxString>( aGate, "addlevel" );
980 
981  // (off | value | name | both)
982  if( stemp == "must" )
984  else if( stemp == "can" )
986  else if( stemp == "next" )
988  else if( stemp == "request" )
990  else if( stemp == "always" )
992  else
994 }
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: