ReportConsole to string

This commit is contained in:
2024-03-16 01:16:00 +01:00
parent 38978aa7b7
commit ad402ac21e
3 changed files with 64 additions and 42 deletions

View File

@@ -2,6 +2,7 @@
#include <string>
#include "common/Colors.h"
#include <sstream>
#include "ReportBase.h"
namespace platform {
@@ -10,12 +11,17 @@ namespace platform {
public:
explicit ReportConsole(json data_, bool compare = false, int index = -1) : ReportBase(data_, compare), selectedIndex(index) {};
virtual ~ReportConsole() = default;
std::string fileReport();
private:
int selectedIndex;
std::string headerLine(const std::string& text, int utf);
void header() override;
void do_header();
void body() override;
void do_body();
void footer(double totalScore);
void showSummary() override;
std::stringstream sheader;
std::stringstream sbody;
};
};