Cppcheck
|
Printable (in-memory) report. More...
#include <printablereport.h>
Public Member Functions | |
PrintableReport () | |
bool | create () override |
Create the report (file). More... | |
void | writeHeader () override |
Write report header. More... | |
void | writeFooter () override |
Write report footer. More... | |
void | writeError (const ErrorItem &error) override |
Write error to report. More... | |
const QString & | getFormattedReportText () const |
Returns the formatted report. More... | |
Public Member Functions inherited from Report | |
Report (QString filename) | |
~Report () override | |
virtual bool | open () |
Open the existing report (file). More... | |
void | close () |
Close the report (file). More... | |
Private Attributes | |
QString | mFormattedReport |
Stores the formatted report contents. More... | |
Additional Inherited Members | |
Public Types inherited from Report | |
enum | Type { TXT , XMLV2 , CSV } |
Protected Member Functions inherited from Report | |
QFile * | getFile () |
Get the file object where the report is written to. More... | |
Printable (in-memory) report.
This report formats results and exposes them for printing.
Definition at line 36 of file printablereport.h.
PrintableReport::PrintableReport | ( | ) |
Definition at line 26 of file printablereport.cpp.
|
overridevirtual |
Create the report (file).
Reimplemented from Report.
Definition at line 30 of file printablereport.cpp.
const QString & PrintableReport::getFormattedReportText | ( | ) | const |
Returns the formatted report.
Definition at line 55 of file printablereport.cpp.
References mFormattedReport.
Referenced by ResultsView::print().
|
overridevirtual |
Write error to report.
error | Error data. |
Implements Report.
Definition at line 45 of file printablereport.cpp.
References error, mFormattedReport, and GuiSeverity::toString().
|
overridevirtual |
|
overridevirtual |
|
private |
Stores the formatted report contents.
Definition at line 72 of file printablereport.h.
Referenced by getFormattedReportText(), and writeError().