OEWriteReport

The overloaded versions of the OEWriteReport function

Link

Description

OEWriteReport(filename, report)

writes report into file

OEWriteReport(stream, ext, report)

writes report into output stream

bool OEWriteReport(const std::string &filename,
                   const OEReport &report, unsigned int pagenum = 0)

Writes page(s) of the report into a file with the given name.

filename

The filename into which the page(s) of the report are written. The file extension determines the type of the multi-page image.

report

The OEReport object of which page(s) is/are being written into the given file.

pageidx

This value has to be in the range from 0 to OEReport::NumPages().

Note

If \(pageidx\) is a valid page number i.e in the range from 1 to OEReport::NumPages(), then only the \(pageidx^{th}\) page of the report is written into the file. If \(pageidx\) is zero and the file extension is recognized as a multi-page format, than all pages of the report are written into the file.

bool OEWriteReport(OEPlatform::oeostream &os,
                   const std::string &ext,
                   const OEReport &report, unsigned int page=0)

Writes page(s) of the report into the given stream.

os

The stream into which the page(s) of the report are written.

ext

The extension which determine the type of the image.

report

The OEReport object of which page(s) is/are being written into the given file.

pageidx

This value has to be in the range from 0 to OEReport::NumPages().

Note

If \(pageidx\) is a valid page number i.e in the range from 1 to OEReport::NumPages(), then only the \(pageidx^{th}\) page of the report is written into the stream. If \(pageidx\) is zero and the file extension is recognized as a multi-page format, than all pages of the report are written into the stream.