38 return aStream <<
"?";
44 std::map<wxString, std::set<wxString>>
candidates;
55 std::map<wxString, wxString>
result;
59 if( names.size() == 1 )
65 aReporter.
Report( wxString::Format(
_(
"Ambiguous imported net name '%s'; board net rename "
72 std::map<wxString, int> claims;
79 if( claims[it->second] > 1 )
81 aReporter.
Report( wxString::Format(
_(
"Imported net name '%s' is claimed by more than one "
82 "source net; board net rename omitted." ), it->second ),
A pure virtual class used to derive REPORTER objects from.
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Report a string with a given severity.
std::ostream & operator<<(std::ostream &aStream, IMPORT_NET_STATUS aStatus)
Name the status, so test diagnostics read as a status rather than an ordinal.
std::map< wxString, wxString > GetBoardNetNameMap(const IMPORT_NET_MAP &aMap, REPORTER &aReporter)
Reduce the map to the board net renames it justifies.
IMPORT_NET_STATUS
How completely a source net survived conversion.
@ BUS
the source net is carried by a bus
@ NO_CONNECT
the source marks the net as deliberately unconnected
@ RESOLVED
exactly one physical net carries the source net
@ SPLIT
the source net reaches more than one physical net
@ UNCONNECTED
the source net reaches no physical net
Import provenance, held only for the lifetime of the importing SCHEMATIC.
std::vector< IMPORT_NET_MAP_ENTRY > entries
static std::vector< int > candidates(const SEGMENT_INDEX &aIndex, const SEG &aQuery, int aPadding)
wxString result
Test unit parsing edge cases and error handling.