KiCad PCB EDA Suite
|
#include <cadstar_archive_parser.h>
Classes | |
struct | DEFINITION |
< "PARTDEFINITION" node name More... | |
struct | PART_PIN |
< "PARTPIN" node name More... | |
Public Member Functions | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
Static Public Member Functions | |
static CADSTAR_PIN_TYPE | GetPinType (XNODE *aNode) |
Public Attributes | |
PART_ID | ID |
wxString | Name |
long | Version |
DEFINITION | Definition |
std::map< PART_PIN_ID, PART_PIN > | PartPins |
It is unclear why there are two "Pin" structures in CPA files... PART_PIN seems to be a reduced version of PART::DEFINITION::PIN Therefore, PART_PIN is only included for completeness of the parser, but won't be used. | |
bool | HidePinNames = false |
This seems to be a duplicate of DEFINITION::HidePinNames Possibly only used in older file formats? | |
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUE > | AttributeValues |
Some attributes are defined within the part definition, whilst others are defined in the part itself. | |
Definition at line 974 of file cadstar_archive_parser.h.
|
static |
Definition at line 1785 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), and THROW_UNKNOWN_PARAMETER_IO_ERROR.
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 2023 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeID, XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Parse(), pin, and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_ARCHIVE_PARSER::PARTS::Parse().
std::map<ATTRIBUTE_ID, ATTRIBUTE_VALUE> CADSTAR_ARCHIVE_PARSER::PART::AttributeValues |
Some attributes are defined within the part definition, whilst others are defined in the part itself.
Definition at line 1136 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolGateAndPartFields().
DEFINITION CADSTAR_ARCHIVE_PARSER::PART::Definition |
bool CADSTAR_ARCHIVE_PARSER::PART::HidePinNames = false |
This seems to be a duplicate of DEFINITION::HidePinNames Possibly only used in older file formats?
Definition at line 1133 of file cadstar_archive_parser.h.
PART_ID CADSTAR_ARCHIVE_PARSER::PART::ID |
Definition at line 1123 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolGateAndPartFields(), and CADSTAR_ARCHIVE_PARSER::PARTS::Parse().
wxString CADSTAR_ARCHIVE_PARSER::PART::Name |
std::map<PART_PIN_ID, PART_PIN> CADSTAR_ARCHIVE_PARSER::PART::PartPins |
It is unclear why there are two "Pin" structures in CPA files... PART_PIN seems to be a reduced version of PART::DEFINITION::PIN Therefore, PART_PIN is only included for completeness of the parser, but won't be used.
Definition at line 1127 of file cadstar_archive_parser.h.
long CADSTAR_ARCHIVE_PARSER::PART::Version |
Definition at line 1125 of file cadstar_archive_parser.h.