KiCad PCB EDA Suite
|
#include <cadstar_pcb_archive_parser.h>
Public Member Functions | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
Public Attributes | |
COMPONENT_ID | ID |
wxString | Name |
Designator e.g. "C1", "R1", etc. | |
PART_ID | PartID |
SYMDEF_ID | SymdefID |
POINT | Origin |
Origin of the component (this is used as the reference point when placing the component in the design) | |
GROUP_ID | GroupID = wxEmptyString |
If not empty, this component is part of a group. | |
REUSEBLOCKREF | ReuseBlockRef |
COMPONENT_ID | VariantParentComponentID = wxEmptyString |
VARIANT_ID | VariantID = wxEmptyString |
long | OrientAngle = 0 |
bool | TestPoint = false |
Indicates whether this component should be treated as a testpoint. | |
bool | Mirror = false |
bool | Fixed = false |
READABILITY | Readability = READABILITY::BOTTOM_TO_TOP |
std::map< ATTRIBUTE_ID, TEXT_LOCATION > | TextLocations |
This contains location of any attributes, including designator position. | |
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUE > | AttributeValues |
std::map< PART_DEFINITION_PIN_ID, wxString > | PinLabels |
This is inherited from the PARTS library but is allowed to be out of sync. | |
std::map< PART_DEFINITION_PIN_ID, PIN_ATTRIBUTE > | PinAttributes |
std::map< PAD_ID, PADEXCEPTION > | PadExceptions |
Override pad definitions for this instance. | |
Definition at line 903 of file cadstar_pcb_archive_parser.h.
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 1842 of file cadstar_pcb_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeID, CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::AttributeID, XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_PCB_ARCHIVE_PARSER::PADEXCEPTION::ID, ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PIN_ATTRIBUTE::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::PADEXCEPTION::Parse(), CADSTAR_ARCHIVE_PARSER::ParseReadability(), CADSTAR_PCB_ARCHIVE_PARSER::PIN_ATTRIBUTE::Pin, THROW_MISSING_PARAMETER_IO_ERROR, and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::LAYOUT::Parse().
std::map<ATTRIBUTE_ID, ATTRIBUTE_VALUE> CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::AttributeValues |
Definition at line 926 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponentAttributes().
bool CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Fixed = false |
Definition at line 920 of file cadstar_pcb_archive_parser.h.
GROUP_ID CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::GroupID = wxEmptyString |
If not empty, this component is part of a group.
Definition at line 912 of file cadstar_pcb_archive_parser.h.
COMPONENT_ID CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::ID |
Definition at line 905 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), and CADSTAR_PCB_ARCHIVE_PARSER::LAYOUT::Parse().
bool CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Mirror = false |
Definition at line 919 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
wxString CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Name |
Designator e.g. "C1", "R1", etc.
Definition at line 906 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
long CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::OrientAngle = 0 |
Definition at line 916 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
POINT CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Origin |
Origin of the component (this is used as the reference point when placing the component in the design)
Definition at line 909 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
std::map<PAD_ID, PADEXCEPTION> CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::PadExceptions |
Override pad definitions for this instance.
Definition at line 932 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
PART_ID CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::PartID |
Definition at line 907 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponentAttributes(), and CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
std::map<PART_DEFINITION_PIN_ID, PIN_ATTRIBUTE> CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::PinAttributes |
Definition at line 931 of file cadstar_pcb_archive_parser.h.
std::map<PART_DEFINITION_PIN_ID, wxString> CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::PinLabels |
This is inherited from the PARTS library but is allowed to be out of sync.
See PART::DEFINITION::PIN::Label
Definition at line 927 of file cadstar_pcb_archive_parser.h.
READABILITY CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::Readability = READABILITY::BOTTOM_TO_TOP |
Definition at line 921 of file cadstar_pcb_archive_parser.h.
REUSEBLOCKREF CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::ReuseBlockRef |
Definition at line 913 of file cadstar_pcb_archive_parser.h.
SYMDEF_ID CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::SymdefID |
Definition at line 908 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
bool CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::TestPoint = false |
Indicates whether this component should be treated as a testpoint.
Definition at line 917 of file cadstar_pcb_archive_parser.h.
std::map<ATTRIBUTE_ID, TEXT_LOCATION> CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::TextLocations |
This contains location of any attributes, including designator position.
Definition at line 923 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponentAttributes().
VARIANT_ID CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::VariantID = wxEmptyString |
Definition at line 915 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
COMPONENT_ID CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT::VariantParentComponentID = wxEmptyString |
Definition at line 914 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().