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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MUST 
CAN 
NEXT 
REQUEST 
ALWAYS 

Definition at line 984 of file eagle_parser.h.

985  {
986  MUST,
987  CAN,
988  NEXT,
989  REQUEST,
990  ALWAYS
991  };

Constructor & Destructor Documentation

◆ EGATE()

EGATE::EGATE ( wxXmlNode *  aGate)

Definition at line 984 of file eagle_parser.cpp.

985 {
986  /*
987  * <!ELEMENT gate EMPTY>
988  * <!ATTLIST gate
989  * name %String; #REQUIRED
990  * symbol %String; #REQUIRED
991  * x %Coord; #REQUIRED
992  * y %Coord; #REQUIRED
993  * addlevel %GateAddLevel; "next"
994  * swaplevel %Int; "0"
995  * >
996  */
997 
998  name = parseRequiredAttribute<wxString>( aGate, "name" );
999  symbol = parseRequiredAttribute<wxString>( aGate, "symbol" );
1000 
1001  x = parseRequiredAttribute<ECOORD>( aGate, "x" );
1002  y = parseRequiredAttribute<ECOORD>( aGate, "y" );
1003 
1004  opt_wxString stemp = parseOptionalAttribute<wxString>( aGate, "addlevel" );
1005 
1006  // (off | value | name | both)
1007  if( stemp == "must" )
1009  else if( stemp == "can" )
1010  addlevel = EGATE::CAN;
1011  else if( stemp == "next" )
1013  else if( stemp == "request" )
1015  else if( stemp == "always" )
1017  else
1019 }
wxString symbol
Definition: eagle_parser.h:976
wxString name
Definition: eagle_parser.h:975
opt_int addlevel
Definition: eagle_parser.h:981
ECOORD x
Definition: eagle_parser.h:978
ECOORD y
Definition: eagle_parser.h:979

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

Member Data Documentation

◆ addlevel

opt_int EGATE::addlevel

Definition at line 981 of file eagle_parser.h.

◆ name

wxString EGATE::name

Definition at line 975 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ swaplevel

opt_int EGATE::swaplevel

Definition at line 982 of file eagle_parser.h.

◆ symbol

wxString EGATE::symbol

Definition at line 976 of file eagle_parser.h.

Referenced by SCH_EAGLE_PLUGIN::loadLibrary().

◆ x

ECOORD EGATE::x

Definition at line 978 of file eagle_parser.h.

◆ y

ECOORD EGATE::y

Definition at line 979 of file eagle_parser.h.


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