KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE Struct Reference

< "GATEDEFINITION" node name More...

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE:
CADSTAR_ARCHIVE_PARSER::PARSER

Public Member Functions

void Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override
 

Public Attributes

GATE_ID ID
 Usually "A", "B", "C", etc. More...
 
wxString Name
 Symbol name in the symbol library. More...
 
wxString Alternate
 Symbol alternate name in the symbol library. More...
 
long PinCount
 Number of pins (terminals) in the symbol. More...
 

Detailed Description

< "GATEDEFINITION" node name

Definition at line 947 of file cadstar_archive_parser.h.

Member Function Documentation

◆ Parse()

void CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
overridevirtual

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 1645 of file cadstar_archive_parser.cpp.

1646 {
1647  wxASSERT( aNode->GetName() == wxT( "GATEDEFINITION" ) );
1648 
1649  ID = GetXmlAttributeIDString( aNode, 0 );
1650  Name = GetXmlAttributeIDString( aNode, 1 );
1651  Alternate = GetXmlAttributeIDString( aNode, 2 );
1652  PinCount = GetXmlAttributeIDLong( aNode, 3 );
1653 
1654  CheckNoChildNodes( aNode );
1655 }
long PinCount
Number of pins (terminals) in the symbol.
wxString Alternate
Symbol alternate name in the symbol library.
static void CheckNoChildNodes(XNODE *aNode)
static long GetXmlAttributeIDLong(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
wxString Name
Symbol name in the symbol library.
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::CheckNoChildNodes(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), and CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString().

Referenced by CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Parse().

Member Data Documentation

◆ Alternate

wxString CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Alternate

Symbol alternate name in the symbol library.

Definition at line 951 of file cadstar_archive_parser.h.

◆ ID

GATE_ID CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::ID

Usually "A", "B", "C", etc.

Definition at line 949 of file cadstar_archive_parser.h.

Referenced by CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::Parse().

◆ Name

wxString CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::Name

Symbol name in the symbol library.

Definition at line 950 of file cadstar_archive_parser.h.

◆ PinCount

long CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE::PinCount

Number of pins (terminals) in the symbol.

Definition at line 952 of file cadstar_archive_parser.h.


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