KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF Struct Reference

References an element from a design reuse block. More...

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF:
CADSTAR_ARCHIVE_PARSER::PARSER

Public Member Functions

bool IsEmpty ()
 Determines if this is empty (i.e. no design reuse associated) More...
 
void Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override
 

Public Attributes

REUSEBLOCK_ID ReuseBlockID = wxEmptyString
 
wxString ItemReference = wxEmptyString
 For Components, this references the designator in the reuse file. More...
 

Detailed Description

References an element from a design reuse block.

Definition at line 824 of file cadstar_archive_parser.h.

Member Function Documentation

◆ IsEmpty()

bool CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::IsEmpty ( )

Determines if this is empty (i.e. no design reuse associated)

Definition at line 1434 of file cadstar_archive_parser.cpp.

1435 {
1436  return ReuseBlockID == wxEmptyString && ItemReference == wxEmptyString;
1437 }
wxString ItemReference
For Components, this references the designator in the reuse file.

◆ Parse()

void CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
overridevirtual

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 1440 of file cadstar_archive_parser.cpp.

1441 {
1442  wxASSERT( aNode->GetName() == wxT( "REUSEBLOCKREF" ) );
1443 
1444  ReuseBlockID = GetXmlAttributeIDString( aNode, 0 );
1445  ItemReference = GetXmlAttributeIDString( aNode, 1 );
1446 
1447  CheckNoChildNodes( aNode );
1448 }
wxString ItemReference
For Components, this references the designator in the reuse file.
static void CheckNoChildNodes(XNODE *aNode)
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::CheckNoChildNodes(), and CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString().

Member Data Documentation

◆ ItemReference

wxString CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::ItemReference = wxEmptyString

For Components, this references the designator in the reuse file.

For net elements (such as vias, routes, etc.), coppers and templates, this parameter is blank.

Definition at line 827 of file cadstar_archive_parser.h.

◆ ReuseBlockID

REUSEBLOCK_ID CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::ReuseBlockID = wxEmptyString

Definition at line 826 of file cadstar_archive_parser.h.


The documentation for this struct was generated from the following files: