KiCad PCB EDA Suite
component_references_lister.cpp File Reference

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

#include <sch_reference_list.h>
#include <wx/regex.h>
#include <algorithm>
#include <vector>
#include <unordered_set>
#include <fctsys.h>
#include <refdes_utils.h>
#include <reporter.h>
#include <sch_component.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 component 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 277 of file component_references_lister.cpp.

278 {
279  wxString fullref;
280  fullref = aItem.GetRef() + aItem.GetRefNumber();
281 
282  if( aUnitNumber < 0 )
283  fullref << ".." << aItem.GetUnit();
284  else
285  fullref << ".." << aUnitNumber;
286 
287  return fullref;
288 }
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().