25 lines
749 B
C++
25 lines
749 B
C++
#ifndef REPORT_EXCEL_H
|
|
#define REPORT_EXCEL_H
|
|
#include "common/Colors.h"
|
|
#include "ReportBase.h"
|
|
#include "ExcelFile.h"
|
|
namespace platform {
|
|
using json = nlohmann::ordered_json;
|
|
|
|
class ReportExcel : public ReportBase, public ExcelFile {
|
|
public:
|
|
explicit ReportExcel(json data_, bool compare, lxw_workbook* workbook, lxw_worksheet* worksheet = NULL);
|
|
void closeFile();
|
|
private:
|
|
void formatColumns();
|
|
void createFile();
|
|
void createWorksheet();
|
|
void header() override;
|
|
void body() override;
|
|
void showSummary() override;
|
|
void footer(double totalScore, int row);
|
|
void append_notes(const json& r, int row);
|
|
void header_notes(int row);
|
|
};
|
|
};
|
|
#endif |