KiCad PCB EDA Suite
component_references_lister.cpp File Reference

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

#include <wx/regex.h>
#include <algorithm>
#include <vector>
#include <unordered_set>
#include <fctsys.h>
#include <kicad_string.h>
#include <sch_edit_frame.h>
#include <sch_reference_list.h>
#include <sch_component.h>
#include <reporter.h>

Go to the source code of this file.

Functions

wxString buildFullReference (const SCH_REFERENCE &aItem)
 

Detailed Description

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

Definition in file component_references_lister.cpp.

Function Documentation

wxString buildFullReference ( const SCH_REFERENCE aItem)

Definition at line 276 of file component_references_lister.cpp.

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

Referenced by SCH_REFERENCE_LIST::Annotate().

277 {
278  wxString fullref;
279  fullref = aItem.GetRef() + aItem.GetRefNumber();
280  fullref << ".." << aItem.GetUnit();
281 
282  return fullref;
283 }
int GetUnit() const
wxString GetRef() const
wxString GetRefNumber() const