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

987 {
988  /*
989  * <!ELEMENT gate EMPTY>
990  * <!ATTLIST gate
991  * name %String; #REQUIRED
992  * symbol %String; #REQUIRED
993  * x %Coord; #REQUIRED
994  * y %Coord; #REQUIRED
995  * addlevel %GateAddLevel; "next"
996  * swaplevel %Int; "0"
997  * >
998  */
999 
1000  name = parseRequiredAttribute<wxString>( aGate, wxT( "name" ) );
1001  symbol = parseRequiredAttribute<wxString>( aGate, wxT( "symbol" ) );
1002 
1003  x = parseRequiredAttribute<ECOORD>( aGate, wxT( "x" ) );
1004  y = parseRequiredAttribute<ECOORD>( aGate, wxT( "y" ) );
1005 
1006  opt_wxString stemp = parseOptionalAttribute<wxString>( aGate, wxT( "addlevel" ) );
1007 
1008  // (off | value | name | both)
1009  if( stemp == wxT( "must" ) )
1011  else if( stemp == wxT( "can" ) )
1012  addlevel = EGATE::CAN;
1013  else if( stemp == wxT( "next" ) )
1015  else if( stemp == wxT( "request" ) )
1017  else if( stemp == wxT( "always" ) )
1019  else
1021 }
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: