Begin implementing grid combinations

This commit is contained in:
2023-11-21 13:11:14 +01:00
parent 4628e48d3c
commit 495d8a8528
7 changed files with 107 additions and 13 deletions

21
src/Platform/GridData.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef GRIDDATA_H
#define GRIDDATA_H
#include <string>
#include <vector>
#include <map>
#include <nlohmann/json.hpp>
namespace platform {
using json = nlohmann::json;
class GridData {
public:
GridData();
~GridData() = default;
std::vector<json> getGrid(const std::string& model) { return doCombination(model); }
private:
int computeNumCombinations(const json& line);
std::vector<json> doCombination(const std::string& model);
std::map<std::string, json> grid;
};
} /* namespace platform */
#endif /* GRIDDATA_H */