Create Base class for paged reports

This commit is contained in:
2024-03-17 01:22:50 +01:00
parent 106a36109e
commit fa4f47ff35
8 changed files with 78 additions and 53 deletions

View File

@@ -0,0 +1,24 @@
#include "common/Colors.h"
#include "ReportsPaged.h"
namespace platform {
ReportsPaged::ReportsPaged()
{
loc = std::locale("es_ES.UTF-8");
oss.imbue(loc);
}
std::string ReportsPaged::getOutput() const
{
std::string s;
for (const auto& piece : header) s += piece;
for (const auto& piece : body) s += piece;
return s;
}
std::string ReportsPaged::getHeader() const
{
std::string s;
for (const auto& piece : header) s += piece;
return s;
}
}