|
Cppcheck
|
A base class for reports. More...
#include <report.h>
Public Types | |
| enum | Type { TXT, XML, XMLV2, CSV } |
Public Member Functions | |
| Report (const QString &filename) | |
| virtual | ~Report () |
| virtual bool | Create () |
| Create the report (file). | |
| virtual bool | Open () |
| Open the existing report (file). | |
| virtual void | Close () |
| Close the report (file). | |
| virtual void | WriteHeader ()=0 |
| Write report header. | |
| virtual void | WriteFooter ()=0 |
| Write report footer. | |
| virtual void | WriteError (const ErrorItem &error)=0 |
| Write error to report. | |
Protected Member Functions | |
| QFile * | GetFile () |
| Get the file object where the report is written to. | |
Private Attributes | |
| QString | mFilename |
| Filename of the report. | |
| QFile | mFile |
| Fileobject for the report file. | |
| enum Report::Type |
| Report::Report | ( | const QString & | filename | ) |
Definition at line 24 of file report.cpp.
| Report::~Report | ( | ) | [virtual] |
Definition at line 29 of file report.cpp.
References Close().
| void Report::Close | ( | ) | [virtual] |
Close the report (file).
Definition at line 54 of file report.cpp.
References mFile.
Referenced by ~Report().
| bool Report::Create | ( | ) | [virtual] |
Create the report (file).
Reimplemented in XmlReportV2, CsvReport, TxtReport, and XmlReportV1.
Definition at line 34 of file report.cpp.
References mFile, and mFilename.
Referenced by CsvReport::Create(), XmlReportV1::Create(), TxtReport::Create(), XmlReportV2::Create(), and ResultsView::Save().
| QFile * Report::GetFile | ( | ) | [protected] |
Get the file object where the report is written to.
Definition at line 60 of file report.cpp.
References mFile.
Referenced by CsvReport::Create(), TxtReport::Create(), XmlReportV1::Create(), XmlReportV2::Create(), XmlReportV1::Open(), and XmlReportV2::Open().
| bool Report::Open | ( | ) | [virtual] |
Open the existing report (file).
Reimplemented in XmlReportV2, and XmlReportV1.
Definition at line 44 of file report.cpp.
References mFile, and mFilename.
Referenced by XmlReportV1::Open(), XmlReportV2::Open(), and ResultsView::ReadErrorsXml().
| virtual void Report::WriteError | ( | const ErrorItem & | error | ) | [pure virtual] |
Write error to report.
| error | Error data. |
Implemented in XmlReportV2, XmlReportV1, CsvReport, and TxtReport.
Referenced by ResultsTree::SaveErrors().
| virtual void Report::WriteFooter | ( | ) | [pure virtual] |
Write report footer.
Implemented in XmlReportV2, XmlReportV1, CsvReport, and TxtReport.
Referenced by ResultsTree::SaveResults().
| virtual void Report::WriteHeader | ( | ) | [pure virtual] |
Write report header.
Implemented in XmlReportV2, XmlReportV1, CsvReport, and TxtReport.
Referenced by ResultsTree::SaveResults().
QFile Report::mFile [private] |
QString Report::mFilename [private] |
1.7.6.1