/*
* 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 .
*/
#ifndef __DRC_LENGTH_REPORT_H
#define __DRC_LENGTH_REPORT_H
#include
class DRC_RULE;
class DRC_LENGTH_REPORT
{
public:
typedef std::set CITEMS;
struct ENTRY
{
int netcode;
wxString netname;
BOARD_CONNECTED_ITEM* fromItem;
BOARD_CONNECTED_ITEM* toItem;
DRC_RULE* matchingRule;
wxString from;
wxString to;
CITEMS items;
int viaCount;
int totalRoute;
int totalVia;
int totalPadToDie;
int total;
};
DRC_LENGTH_REPORT()
{
}
~DRC_LENGTH_REPORT()
{
}
void Clear()
{
m_report.clear();
}
void Add( const ENTRY& ent )
{
m_report.push_back( ent );
}
const std::vector& GetEntries() const
{
return m_report;
}
private:
std::vector m_report;
};
#endif