Separate specific Excel methods to ExcelFile

This commit is contained in:
2023-09-28 13:07:11 +02:00
parent 82acb3cab5
commit 85202260f3
8 changed files with 247 additions and 174 deletions

View File

@@ -1,5 +1,6 @@
#ifndef BESTRESULTS_EXCEL_H
#define BESTRESULTS_EXCEL_H
#include "ExcelFile.h"
#include <vector>
#include <nlohmann/json.hpp>
@@ -7,15 +8,22 @@ using namespace std;
using json = nlohmann::json;
namespace platform {
class BestResultsExcel {
class BestResultsExcel : ExcelFile {
public:
BestResultsExcel(vector<string> models, vector<string> datasets, json table, bool friedman) : models(models), datasets(datasets), table(table), friedman(friedman) {}
BestResultsExcel(vector<string> models, vector<string> datasets, json table, bool friedman);
~BestResultsExcel();
void build();
private:
void header();
void body();
void footer();
void formatColumns();
const string fileName = "BestResults.xlsx";
vector<string> models;
vector<string> datasets;
json table;
bool friedman;
};
}
#endif //BESTRESULTS_EXCEL_H