KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EASYPC::SCH_NET_NAMES Class Reference

Project-wide net naming: a user name takes the spelling of its first occurrence. More...

#include <easypc_sch_builder.h>

Public Member Functions

void AddSheet (const DESIGN_DOCUMENT &aDoc)
 
wxString Name (const wxString &aStoredName) const
 
bool Shared (const wxString &aName) const
 A user name used on more than one sheet, which is one net across the project.
 

Private Attributes

std::map< wxString, wxString > m_canonical
 upper-cased name to first spelling
 
std::map< wxString, int > m_sheetCount
 

Detailed Description

Project-wide net naming: a user name takes the spelling of its first occurrence.

Definition at line 68 of file easypc_sch_builder.h.

Member Function Documentation

◆ AddSheet()

void EASYPC::SCH_NET_NAMES::AddSheet ( const DESIGN_DOCUMENT & aDoc)

◆ Name()

wxString EASYPC::SCH_NET_NAMES::Name ( const wxString & aStoredName) const

Definition at line 113 of file easypc_sch_builder.cpp.

References EASYPC::IsNamedNet(), and m_canonical.

◆ Shared()

bool EASYPC::SCH_NET_NAMES::Shared ( const wxString & aName) const

A user name used on more than one sheet, which is one net across the project.

Definition at line 106 of file easypc_sch_builder.cpp.

References EASYPC::IsNamedNet(), and m_sheetCount.

Member Data Documentation

◆ m_canonical

std::map<wxString, wxString> EASYPC::SCH_NET_NAMES::m_canonical
private

upper-cased name to first spelling

Definition at line 79 of file easypc_sch_builder.h.

Referenced by AddSheet(), and Name().

◆ m_sheetCount

std::map<wxString, int> EASYPC::SCH_NET_NAMES::m_sheetCount
private

Definition at line 80 of file easypc_sch_builder.h.

Referenced by AddSheet(), and Shared().


The documentation for this class was generated from the following files: