KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ERC_REPORT Class Reference

#include <erc_report.h>

Public Member Functions

 ERC_REPORT (SCHEMATIC *aSchematic, EDA_UNITS aReportUnits, std::shared_ptr< RC_ITEMS_PROVIDER > aMarkersProvider=nullptr)
 
wxString GetTextReport ()
 Returns the ERC report in "text" (human readable) format in the C-locale.
 
bool WriteTextReport (const wxString &aFullFileName)
 Writes the text report also available via GetTextReport directly to a given file path.
 
bool WriteJsonReport (const wxString &aFullFileName)
 Writes a JSON formatted ERC Report to the given file path in the c-locale.
 

Private Attributes

SCHEMATICm_sch
 
EDA_UNITS m_reportUnits
 
std::shared_ptr< RC_ITEMS_PROVIDERm_markersProvider
 
int m_reportedSeverities
 

Detailed Description

Definition at line 30 of file erc_report.h.

Constructor & Destructor Documentation

◆ ERC_REPORT()

ERC_REPORT::ERC_REPORT ( SCHEMATIC * aSchematic,
EDA_UNITS aReportUnits,
std::shared_ptr< RC_ITEMS_PROVIDER > aMarkersProvider = nullptr )

Member Function Documentation

◆ GetTextReport()

◆ WriteJsonReport()

◆ WriteTextReport()

bool ERC_REPORT::WriteTextReport ( const wxString & aFullFileName)

Writes the text report also available via GetTextReport directly to a given file path.

Returns
True if the file write completed successfully, false otherwise

Definition at line 143 of file erc_report.cpp.

References GetTextReport().

Referenced by EESCHEMA_JOBS_HANDLER::JobSchErc(), and DIALOG_ERC::OnSaveReport().

Member Data Documentation

◆ m_markersProvider

std::shared_ptr<RC_ITEMS_PROVIDER> ERC_REPORT::m_markersProvider
private

Definition at line 60 of file erc_report.h.

Referenced by ERC_REPORT(), GetTextReport(), and WriteJsonReport().

◆ m_reportedSeverities

int ERC_REPORT::m_reportedSeverities
private

Definition at line 61 of file erc_report.h.

Referenced by ERC_REPORT(), GetTextReport(), and WriteJsonReport().

◆ m_reportUnits

EDA_UNITS ERC_REPORT::m_reportUnits
private

Definition at line 59 of file erc_report.h.

Referenced by ERC_REPORT(), GetTextReport(), and WriteJsonReport().

◆ m_sch

SCHEMATIC* ERC_REPORT::m_sch
private

Definition at line 58 of file erc_report.h.

Referenced by ERC_REPORT(), GetTextReport(), and WriteJsonReport().


The documentation for this class was generated from the following files: