2020-09-25 18:29:05 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2020 KiCad Developers.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRC_LENGTH_REPORT_H
|
|
|
|
#define __DRC_LENGTH_REPORT_H
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
class DRC_RULE;
|
|
|
|
|
|
|
|
class DRC_LENGTH_REPORT
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct ENTRY
|
|
|
|
{
|
2021-07-28 20:04:53 +00:00
|
|
|
int netcode;
|
|
|
|
wxString netname;
|
|
|
|
BOARD_CONNECTED_ITEM* fromItem;
|
|
|
|
BOARD_CONNECTED_ITEM* toItem;
|
|
|
|
DRC_RULE* matchingRule;
|
|
|
|
wxString from;
|
|
|
|
wxString to;
|
|
|
|
std::set<BOARD_CONNECTED_ITEM*> items;
|
|
|
|
int viaCount;
|
|
|
|
int totalRoute;
|
|
|
|
int totalVia;
|
|
|
|
int totalPadToDie;
|
|
|
|
int total;
|
2020-09-25 18:29:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
DRC_LENGTH_REPORT()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
~DRC_LENGTH_REPORT()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void Clear()
|
|
|
|
{
|
|
|
|
m_report.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Add( const ENTRY& ent )
|
|
|
|
{
|
|
|
|
m_report.push_back( ent );
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::vector<ENTRY>& GetEntries() const
|
|
|
|
{
|
|
|
|
return m_report;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<ENTRY> m_report;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|