28 std::map<int, wxString> names;
32 if( net->GetNetCode() > 0 )
33 names.emplace( net->GetNetCode(), wxString() );
38 for(
auto& [code,
name] : names )
39 name = wxString::Format( wxS(
"NET_%zu" ), ++ordinal );
Information pertinent to a Pcbnew printed circuit board.
const NETINFO_LIST & GetNetInfo() const
Handle the data for a net.
std::map< int, wxString > FabAnonymousNetNames(const BOARD &aBoard)
Anonymous names NET_1 through NET_n keyed and numbered by net code.