77 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
88 int labelSubgraphsWithBusParents = 0;
89 int labelSubgraphsTotal = 0;
93 std::set<const CONNECTION_SUBGRAPH*> allBusParents;
95 for(
const auto& [key, subgraphs] : graph->
GetNetMap() )
99 if( subgraph->GetSheet() != rootPath )
104 if( !conn || conn->
IsBus() )
107 bool hasLabel =
false;
110 for(
SCH_ITEM* item : subgraph->GetItems() )
116 if( label->
GetText() == wxT(
"D0" ) || label->
GetText() == wxT(
"D1" ) )
127 labelSubgraphsTotal++;
129 const auto& busParents = subgraph->GetBusParents();
131 if( !busParents.empty() )
133 labelSubgraphsWithBusParents++;
135 for(
const auto& [busConn, parentSet] : busParents )
138 allBusParents.insert( parent );
142 <<
"' net='" << conn->
Name()
143 <<
"' has " << busParents.size()
144 <<
" bus parent entries" );
149 <<
"' net='" << conn->
Name()
150 <<
"' has NO bus parents (BUG)" );
156 "Should find at least one label subgraph for D0/D1" );
159 "All " << labelSubgraphsTotal
160 <<
" label subgraphs should have bus parents, but only "
161 << labelSubgraphsWithBusParents <<
" do" );
166 "Labels should have bus parents from both sheets (2), found "
167 << allBusParents.size() );
virtual const wxString & GetText() const
Return the string associated with the text object.