Add open excel file on b_manage termination

This commit is contained in:
2025-02-25 13:41:06 +01:00
parent 475a819a87
commit de7cf091be
3 changed files with 70 additions and 1 deletions

View File

@@ -82,10 +82,12 @@ namespace platform {
workbook_close(workbook);
}
if (didExcel) {
std::cout << Colors::MAGENTA() << "Excel file created: " << Paths::excel() + Paths::excelResults() << std::endl;
excelFileName = Paths::excel() + Paths::excelResults();
std::cout << Colors::MAGENTA() << "Excel file created: " << excelFileName << std::endl;
}
std::cout << Colors::RESET() << "Done!" << std::endl;
}
std::string ManageScreen::getVersions()
{
std::string kfold_version = folding::KFold(5, 100).version();

View File

@@ -19,6 +19,7 @@ namespace platform {
~ManageScreen() = default;
void doMenu();
void updateSize(int rows, int cols);
std::string getExcelFileName() const { return excelFileName; }
private:
void list(const std::string& status, const std::string& color);
void list_experiments(const std::string& status, const std::string& color);
@@ -58,6 +59,7 @@ namespace platform {
std::vector<Paginator> paginator;
ResultsManager results;
lxw_workbook* workbook;
std::string excelFileName;
};
}
#endif