CADSTAR PCB Archive Importer: Parse EXITS node in PADEXCEPTION

This commit is contained in:
Roberto Fernandez Bautista 2020-10-24 18:00:55 +01:00 committed by Wayne Stambaugh
parent a7d5d1f091
commit 7a1777e9b9
2 changed files with 9 additions and 1 deletions

View File

@ -1764,6 +1764,11 @@ void CADSTAR_PCB_ARCHIVE_PARSER::PADEXCEPTION::Parse( XNODE* aNode )
{
PadCode = GetXmlAttributeIDString( cNode, 0 );
}
else if( cNodeName == wxT( "EXITS" ) )
{
OverrideExits = true;
Exits.Parse( cNode );
}
else if( cNodeName == wxT( "SIDE" ) )
{
OverrideSide = true;

View File

@ -878,6 +878,8 @@ public:
{
PAD_ID ID;
PADCODE_ID PadCode = wxEmptyString; ///< If not empty, override padcode
bool OverrideExits = false;
PAD_EXITS Exits;
bool OverrideSide = false;
PAD_SIDE Side;
bool OverrideOrientation = false;
@ -916,7 +918,8 @@ public:
///< to be out of sync.
///< See PART::DEFINITION::PIN::Label
std::map<PART_DEFINITION_PIN_ID, PIN_ATTRIBUTE> PinAttributes;
std::map<PAD_ID, PADEXCEPTION> PadExceptions;
std::map<PAD_ID, PADEXCEPTION> PadExceptions; ///< Override pad definitions
///< for this instance
void Parse( XNODE* aNode );
};