Add folder parameter to best, grid and main
This commit is contained in:
@@ -69,9 +69,9 @@ namespace platform {
|
||||
platform::JsonValidator validator(platform::SchemaV1_0::schema);
|
||||
return validator.validate(data);
|
||||
}
|
||||
void Result::save()
|
||||
void Result::save(const std::string& path)
|
||||
{
|
||||
std::ofstream file(Paths::results() + getFilename());
|
||||
std::ofstream file(path + getFilename());
|
||||
file << data;
|
||||
file.close();
|
||||
}
|
||||
|
@@ -15,7 +15,7 @@ namespace platform {
|
||||
public:
|
||||
Result();
|
||||
Result& load(const std::string& path, const std::string& filename);
|
||||
void save();
|
||||
void save(const std::string& path);
|
||||
std::vector<std::string> check();
|
||||
// Getters
|
||||
json getJson();
|
||||
|
Reference in New Issue
Block a user