CADSTAR Schematic Archive Importer: Parse TESTPOINT

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7574
This commit is contained in:
Roberto Fernandez Bautista 2021-02-17 16:57:26 +00:00 committed by Wayne Stambaugh
parent 09ebfcd650
commit c98106ebcf
2 changed files with 8 additions and 2 deletions

View File

@ -613,6 +613,11 @@ void CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT::Parse( XNODE* aNode, PARSER_CONT
Type = TYPE::GLOBALSIGNAL;
Reference = GetXmlAttributeIDString( cNode, 0 );
}
else if( cNodeName == wxT( "TESTPOINT" ) )
{
Type = TYPE::TESTPOINT;
CheckNoNextNodes( cNode );
}
else
{
THROW_UNKNOWN_NODE_IO_ERROR( cNodeName, aNode->GetName() );

View File

@ -222,12 +222,13 @@ public:
enum class TYPE
{
GLOBALSIGNAL,
SIGNALREF
SIGNALREF,
TESTPOINT
//TODO: there might be others
};
TYPE Type;
wxString Reference;
wxString Reference = wxEmptyString;
void Parse( XNODE* aNode, PARSER_CONTEXT* aContext ) override;
};