Begin result report pagination

This commit is contained in:
2024-03-17 02:07:10 +01:00
parent fa4f47ff35
commit faccb09c43
4 changed files with 78 additions and 36 deletions

View File

@@ -12,6 +12,8 @@ namespace platform {
explicit ReportConsole(json data_, bool compare = false, int index = -1) : ReportBase(data_, compare), selectedIndex(index) {};
virtual ~ReportConsole() = default;
std::string fileReport();
std::string getHeader() { do_header(); do_body(); return sheader.str(); }
std::vector<std::string>& getBody() { return vbody; }
private:
int selectedIndex;
std::string headerLine(const std::string& text, int utf);
@@ -23,5 +25,6 @@ namespace platform {
void showSummary() override;
std::stringstream sheader;
std::stringstream sbody;
std::vector<std::string> vbody;
};
};