Complete best build and report

This commit is contained in:
2023-09-22 01:03:55 +02:00
parent c4d0a5b4e6
commit c4f9187e2a
4 changed files with 56 additions and 11 deletions

View File

@@ -1,17 +1,19 @@
#ifndef BESTRESULTS_H
#define BESTRESULTS_H
#include <string>
#include <nlohmann/json.hpp>
using namespace std;
using json = nlohmann::json;
namespace platform {
class BestResults {
public:
explicit BestResults(const string& path, const string& score, const string& model) : path(path), score(score), model(model) {}
void build();
string build();
void report();
private:
vector<string> loadFiles();
string bestResultFile();
json loadFile(const string& fileName);
string path;
string score;
string model;