KiCad PCB EDA Suite
component_references_lister.cpp File Reference

functions to create a symbol flat list and to annotate schematic. More...

#include <sch_reference_list.h>
#include <core/kicad_algo.h>
#include <wx/regex.h>
#include <algorithm>
#include <vector>
#include <unordered_set>
#include <string_utils.h>
#include <erc_settings.h>
#include <sch_symbol.h>
#include <sch_edit_frame.h>

Go to the source code of this file.

Functions

wxString buildFullReference (const SCH_REFERENCE &aItem, int aUnitNumber=-1)
 

Detailed Description

functions to create a symbol flat list and to annotate schematic.

Definition in file component_references_lister.cpp.

Function Documentation

◆ buildFullReference()

wxString buildFullReference ( const SCH_REFERENCE aItem,
int  aUnitNumber = -1 
)

Definition at line 365 of file component_references_lister.cpp.

366{
367 wxString fullref;
368 fullref = aItem.GetRef() + aItem.GetRefNumber();
369
370 if( aUnitNumber < 0 )
371 fullref << ".." << aItem.GetUnit();
372 else
373 fullref << ".." << aUnitNumber;
374
375 return fullref;
376}
wxString GetRef() const
int GetUnit() const
wxString GetRefNumber() const

References SCH_REFERENCE::GetRef(), SCH_REFERENCE::GetRefNumber(), and SCH_REFERENCE::GetUnit().

Referenced by SCH_REFERENCE_LIST::Annotate().