KiCad PCB EDA Suite
Loading...
Searching...
No Matches
report_severity.h File Reference
#include <kicommon.h>
#include <wx/string.h>

Go to the source code of this file.

Enumerations

enum  SEVERITY {
  RPT_SEVERITY_UNDEFINED = 0x01 , RPT_SEVERITY_INFO = 0x02 , RPT_SEVERITY_EXCLUSION = 0x04 , RPT_SEVERITY_ACTION = 0x08 ,
  RPT_SEVERITY_WARNING = 0x10 , RPT_SEVERITY_ERROR = 0x20 , RPT_SEVERITY_IGNORE = 0x40 , RPT_SEVERITY_DEBUG = 0x80
}
 

Functions

KICOMMON_API wxString formatSeverities (int aSeverities)
 Convert a severity mask to a human-readable comma-separated string.
 

Enumeration Type Documentation

◆ SEVERITY

enum SEVERITY
Enumerator
RPT_SEVERITY_UNDEFINED 
RPT_SEVERITY_INFO 
RPT_SEVERITY_EXCLUSION 
RPT_SEVERITY_ACTION 
RPT_SEVERITY_WARNING 
RPT_SEVERITY_ERROR 
RPT_SEVERITY_IGNORE 
RPT_SEVERITY_DEBUG 

Definition at line 29 of file report_severity.h.

Function Documentation

◆ formatSeverities()

KICOMMON_API wxString formatSeverities ( int aSeverities)

Convert a severity mask to a human-readable comma-separated string.

Parameters
aSeveritiesA bitmask of SEVERITY values
Returns
A translated string like "Errors, Warnings"

Definition at line 26 of file report_severity.cpp.

References result, RPT_SEVERITY_ERROR, RPT_SEVERITY_EXCLUSION, and RPT_SEVERITY_WARNING.

Referenced by ERC_REPORT::GetTextReport(), and DRC_REPORT::WriteTextReport().