19 #ifndef XML_REPORTV2_H
20 #define XML_REPORTV2_H
28 class QXmlStreamReader;
29 class QXmlStreamWriter;
42 explicit XmlReportV2(
const QString &filename, QString productName);
75 QList<ErrorItem>
read()
override;
A class containing error data for one error.
XML file report version 2.
const QString mProductName
Product name read from cppcheck.cfg.
ErrorItem readError(const QXmlStreamReader *reader)
Read and parse error item from XML stream.
void writeFooter() override
Write report footer.
QXmlStreamReader * mXmlReader
XML stream reader for reading the report in XML format.
void writeError(const ErrorItem &error) override
Write error to report.
XmlReportV2(const QString &filename, QString productName)
QXmlStreamWriter * mXmlWriter
XML stream writer for writing the report in XML format.
QList< ErrorItem > read() override
Read contents of the report file.
bool create() override
Create the report (file).
bool open() override
Open existing report file.
void writeHeader() override
Write report header.
Base class for XML report classes.
@ error
Programming error.