Refactor Report class into ReportBase & ReportCons

This commit is contained in:
2023-08-21 17:16:29 +02:00
parent 0f66ac73d0
commit 8066701c3c
11 changed files with 122 additions and 73 deletions

View File

@@ -0,0 +1,24 @@
#ifndef REPORTCONSOLE_H
#define REPORTCONSOLE_H
#include <string>
#include <iostream>
#include <nlohmann/json.hpp>
#include "ReportBase.h"
#include "Colors.h"
using json = nlohmann::json;
const int MAXL = 128;
namespace platform {
using namespace std;
class ReportConsole : public ReportBase{
public:
explicit ReportConsole(json data_) : ReportBase(data_) {};
virtual ~ReportConsole() = default;
private:
void header() override;
void body() override;
void footer() override;
};
};
#endif