KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_sheet_path.cpp File Reference
#include <optional>
#include <set>
#include <tuple>
#include <refdes_utils.h>
#include <hash.h>
#include <sch_screen.h>
#include <sch_marker.h>
#include <sch_label.h>
#include <sch_shape.h>
#include <sch_sheet_path.h>
#include <sch_symbol.h>
#include <sch_sheet.h>
#include <schematic.h>
#include <string_utils.h>
#include <template_fieldnames.h>
#include <trace_helpers.h>
#include <wx/filename.h>
#include <wx/log.h>

Go to the source code of this file.

Classes

class  DELETED_SHEET_ITEM
 A singleton item of this class is returned for a weak reference that no longer exists. More...
 

Namespaces

namespace  std
 STL namespace.
 

Typedefs

using PACKAGE_UNITS = std::map<std::tuple<wxString, wxString, wxString>, std::set<int>>
 

Functions

static bool stripRefSuffix (wxString &aRef, const wxString &aSuffix)
 
static bool matchesSymbolFilter (SCH_SYMBOL *aSymbol, const SCH_SHEET_PATH &aSheetPath, SYMBOL_FILTER aSymbolFilter)
 
static std::optional< wxString > claimPackageUnit (PACKAGE_UNITS &aPackages, const std::set< wxString > &aSuffixes, const wxString &aStored, const wxString &aLibId, int aUnit, const wxString &aOwnSuffix)
 

Typedef Documentation

◆ PACKAGE_UNITS

using PACKAGE_UNITS = std::map<std::tuple<wxString, wxString, wxString>, std::set<int>>

Definition at line 1876 of file sch_sheet_path.cpp.

Function Documentation

◆ claimPackageUnit()

static std::optional< wxString > claimPackageUnit ( PACKAGE_UNITS & aPackages,
const std::set< wxString > & aSuffixes,
const wxString & aStored,
const wxString & aLibId,
int aUnit,
const wxString & aOwnSuffix )
static

◆ matchesSymbolFilter()

static bool matchesSymbolFilter ( SCH_SYMBOL * aSymbol,
const SCH_SHEET_PATH & aSheetPath,
SYMBOL_FILTER aSymbolFilter )
static

◆ stripRefSuffix()

static bool stripRefSuffix ( wxString & aRef,
const wxString & aSuffix )
static