KiCad PCB EDA Suite
|
#include <cadstar_pcb_archive_parser.h>
Public Member Functions | |
void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
void | ParseIdentifiers (XNODE *aNode, PARSER_CONTEXT *aContext) |
bool | ParseSubNode (XNODE *aChildNode, PARSER_CONTEXT *aContext) |
Public Attributes | |
SYMDEF_TYPE | Type = SYMDEF_TYPE::COMPONENT |
long | SymHeight = 0 |
The Height of the component (3D height in z direction) More... | |
std::vector< COMPONENT_COPPER > | ComponentCoppers |
std::map< COMP_AREA_ID, COMPONENT_AREA > | ComponentAreas |
std::map< PAD_ID, COMPONENT_PAD > | ComponentPads |
std::map< DIMENSION_ID, DIMENSION > | Dimensions |
inside "DIMENSIONS" subnode More... | |
SYMDEF_ID | ID |
wxString | ReferenceName |
This is the name which identifies the symbol in the library Multiple components may exist with the same ReferenceName. More... | |
wxString | Alternate |
This is in addition to ReferenceName. More... | |
POINT | Origin |
Origin of the component (this is used as the reference point when placing the component in the design) More... | |
bool | Stub = false |
When the CADSTAR Archive file is exported without the component library, if components on the board are still exported, the Reference and Alternate names will still be exported but the content is replaced with a "STUB" atom, requiring access to the original library for component definition. More... | |
long | Version = UNDEFINED_VALUE |
Version is a sequential integer number to identify discrepancies between the library and the design. More... | |
std::map< FIGURE_ID, FIGURE > | Figures |
std::map< TEXT_ID, TEXT > | Texts |
std::map< ATTRIBUTE_ID, TEXT_LOCATION > | TextLocations |
This contains location of any attributes, including designator position. More... | |
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUE > | AttributeValues |
These attributes might also have a location. More... | |
Definition at line 774 of file cadstar_pcb_archive_parser.h.
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 1526 of file cadstar_pcb_archive_parser.cpp.
References CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT, XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::ID, CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ID, CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::IsDimension(), CADSTAR_PCB_ARCHIVE_PARSER::JUMPER, pad, CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_AREA::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::STARPOINT, CADSTAR_PCB_ARCHIVE_PARSER::TESTPOINT, THROW_MISSING_PARAMETER_IO_ERROR, and THROW_UNKNOWN_NODE_IO_ERROR.
Referenced by CADSTAR_PCB_ARCHIVE_PARSER::LIBRARY::Parse().
|
inherited |
Definition at line 1690 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString().
|
inherited |
Definition at line 1700 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeID, CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::AttributeID, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::FIGURE::ID, CADSTAR_ARCHIVE_PARSER::TEXT::ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Parse(), CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION::Parse(), CADSTAR_ARCHIVE_PARSER::FIGURE::Parse(), and CADSTAR_ARCHIVE_PARSER::TEXT::Parse().
|
inherited |
This is in addition to ReferenceName.
It allows defining different versions, views etc. of the same basic symbol.
Definition at line 936 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getSymDefFromName(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), CADSTAR_PCB_ARCHIVE_LOADER::loadDocumentationSymbols(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryAreas(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryFigures(), and CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances().
|
inherited |
These attributes might also have a location.
Definition at line 954 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSymDefIntoLibrary().
std::map<COMP_AREA_ID, COMPONENT_AREA> CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::ComponentAreas |
Definition at line 780 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryAreas().
std::vector<COMPONENT_COPPER> CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::ComponentCoppers |
Definition at line 779 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers().
std::map<PAD_ID, COMPONENT_PAD> CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::ComponentPads |
Definition at line 781 of file cadstar_pcb_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), and CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryPads().
std::map<DIMENSION_ID, DIMENSION> CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Dimensions |
inside "DIMENSIONS" subnode
Definition at line 782 of file cadstar_pcb_archive_parser.h.
Definition at line 949 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), CADSTAR_SCH_ARCHIVE_LOADER::loadDocumentationSymbols(), CADSTAR_PCB_ARCHIVE_LOADER::loadDocumentationSymbols(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryFigures(), and CADSTAR_SCH_ARCHIVE_LOADER::loadSymDefIntoLibrary().
|
inherited |
Definition at line 933 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), CADSTAR_SCH_ARCHIVE_PARSER::LIBRARY_SCM::Parse(), and CADSTAR_PCB_ARCHIVE_PARSER::LIBRARY::Parse().
|
inherited |
Origin of the component (this is used as the reference point when placing the component in the design)
Definition at line 938 of file cadstar_archive_parser.h.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), CADSTAR_SCH_ARCHIVE_LOADER::loadDocumentationSymbols(), CADSTAR_PCB_ARCHIVE_LOADER::loadDocumentationSymbols(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), and CADSTAR_SCH_ARCHIVE_LOADER::loadSymDefIntoLibrary().
|
inherited |
This is the name which identifies the symbol in the library Multiple components may exist with the same ReferenceName.
Definition at line 934 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getSymDefFromName(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), CADSTAR_PCB_ARCHIVE_LOADER::loadDocumentationSymbols(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryAreas(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), and CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryFigures().
|
inherited |
When the CADSTAR Archive file is exported without the component library, if components on the board are still exported, the Reference and Alternate names will still be exported but the content is replaced with a "STUB" atom, requiring access to the original library for component definition.
Definition at line 940 of file cadstar_archive_parser.h.
long CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::SymHeight = 0 |
The Height of the component (3D height in z direction)
Definition at line 777 of file cadstar_pcb_archive_parser.h.
|
inherited |
This contains location of any attributes, including designator position.
Definition at line 951 of file cadstar_archive_parser.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), and CADSTAR_SCH_ARCHIVE_LOADER::loadSymDefIntoLibrary().
SYMDEF_TYPE CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB::Type = SYMDEF_TYPE::COMPONENT |
Definition at line 776 of file cadstar_pcb_archive_parser.h.
|
inherited |
Version is a sequential integer number to identify discrepancies between the library and the design.
Definition at line 946 of file cadstar_archive_parser.h.