KiCad PCB EDA Suite
Loading...
Searching...
No Matches
import_net_map.cpp File Reference
#include <import_net_map.h>
#include <reporter.h>
#include <wx/intl.h>
#include <ostream>
#include <set>

Go to the source code of this file.

Functions

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.
 

Function Documentation

◆ GetBoardNetNameMap()

std::map< wxString, wxString > GetBoardNetNameMap ( const IMPORT_NET_MAP & aMap,
REPORTER & aReporter )

Reduce the map to the board net renames it justifies.

Only a source net that one physical net carries can be renamed, and only where the source name was machine-generated, since that is the name the paired board also uses. A generated name that resolved to more than one KiCad name is reported and omitted rather than guessed at.

Definition at line 42 of file import_net_map.cpp.

References _, IMPORT_NET_MAP::entries, IMPORT_NET_MAP_ENTRY::generatedName, IMPORT_NET_MAP_ENTRY::nameAtImport, REPORTER::Report(), RESOLVED, result, RPT_SEVERITY_WARNING, and IMPORT_NET_MAP_ENTRY::status.

Referenced by BOOST_AUTO_TEST_CASE(), EESCHEMA_JOBS_HANDLER::JobImport(), and SCH_EDIT_FRAME::KiwayMailIn().

◆ operator<<()

std::ostream & operator<< ( std::ostream & aStream,
IMPORT_NET_STATUS aStatus )

Name the status, so test diagnostics read as a status rather than an ordinal.

Definition at line 27 of file import_net_map.cpp.

References BUS, NO_CONNECT, RESOLVED, SPLIT, and UNCONNECTED.