KiCad PCB EDA Suite
|
#include <cadstar_archive_parser.h>
Classes | |
struct | DEFINITION |
< "PARTDEFINITION" node name More... | |
struct | PART_PIN |
< "PARTPIN" node name More... | |
Public Types | |
enum class | PIN_TYPE { UNCOMMITTED , INPUT , OUTPUT_OR , OUTPUT_NOT_OR , OUTPUT_NOT_NORM_OR , POWER , GROUND , TRISTATE_BIDIR , TRISTATE_INPUT , TRISTATE_DRIVER } |
Public Member Functions | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
Static Public Member Functions | |
static 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. More... | |
bool | HidePinNames = false |
This seems to be a duplicate of DEFINITION::HidePinNames Possibly only used in older file formats? More... | |
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUE > | AttributeValues |
Some attributes are defined within the part definition, whilst others are defined in the part itself. More... | |
Definition at line 969 of file cadstar_archive_parser.h.
|
strong |
Definition at line 971 of file cadstar_archive_parser.h.
|
static |
Definition at line 1771 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 2007 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(), 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 1155 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSymDefIntoLibrary().
DEFINITION CADSTAR_ARCHIVE_PARSER::PART::Definition |
Definition at line 1145 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getPartDefinitionPin(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), CADSTAR_SCH_ARCHIVE_LOADER::loadPartsLibrary(), and CADSTAR_SCH_ARCHIVE_LOADER::loadSymDefIntoLibrary().
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 1152 of file cadstar_archive_parser.h.
PART_ID CADSTAR_ARCHIVE_PARSER::PART::ID |
Definition at line 1142 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSymDefIntoLibrary(), 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 1146 of file cadstar_archive_parser.h.
long CADSTAR_ARCHIVE_PARSER::PART::Version |
Definition at line 1144 of file cadstar_archive_parser.h.