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 861 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 1538 of file cadstar_archive_parser.cpp.

1539{
1540 return ReuseBlockID == wxEmptyString && ItemReference == wxEmptyString;
1541}
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 1544 of file cadstar_archive_parser.cpp.

1545{
1546 wxASSERT( aNode->GetName() == wxT( "REUSEBLOCKREF" ) );
1547
1550
1551 CheckNoChildNodes( aNode );
1552}
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
static void CheckNoChildNodes(XNODE *aNode)

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 864 of file cadstar_archive_parser.h.

◆ ReuseBlockID

REUSEBLOCK_ID CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF::ReuseBlockID = wxEmptyString

Definition at line 863 of file cadstar_archive_parser.h.


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