Add report output to main

This commit is contained in:
2023-08-05 20:29:05 +02:00
parent 7f45495837
commit 506ef34c6f
7 changed files with 100 additions and 3 deletions

23
src/Platform/Report.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef REPORT_H
#define REPORT_H
#include <string>
#include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
const int MAXL = 121;
namespace platform {
using namespace std;
class Report {
public:
explicit Report(json data_) { data = data_; };
virtual ~Report() = default;
void show();
private:
void header();
void body();
string fromVector(const string& key);
json data;
};
};
#endif