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

301 {
302  wxString fullref;
303  fullref = aItem.GetRef() + aItem.GetRefNumber();
304 
305  if( aUnitNumber < 0 )
306  fullref << ".." << aItem.GetUnit();
307  else
308  fullref << ".." << aUnitNumber;
309 
310  return fullref;
311 }
int GetUnit() const
wxString GetRefNumber() const
wxString GetRef() const

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

Referenced by SCH_REFERENCE_LIST::Annotate().