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 363 of file component_references_lister.cpp.

364{
365 wxString fullref;
366 fullref = aItem.GetRef() + aItem.GetRefNumber();
367
368 if( aUnitNumber < 0 )
369 fullref << ".." << aItem.GetUnit();
370 else
371 fullref << ".." << aUnitNumber;
372
373 return fullref;
374}
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().