5#include <nlohmann/json.hpp>
7namespace fs = std::filesystem;
20 {
"path", d.
path.string()},
28 d.
path = j.value(
"path",
"");
30 d.
version = j.value(
"version",
"");
31 d.
size = j.value(
"size", 0);
static PreprocessRunParams read_current_run_params()
read preprocessing parameters runs
static void save_current_run_params(const fs::path &path, const fs::path &cache_path)
Saves preprocessing parameters for future runs.
static bool is_cache_compatible(const std::string &cache_version)
static constexpr const char * CONFIG_PATH
Configuration file path.
void to_json(json &j, const PreprocessRunParams &d)
void from_json(const json &j, PreprocessRunParams &d)
std::uintmax_t size
Size of the preprocess output.
fs::path path
Path of the current preprocess.
std::string finished_time
Timing information for when preprocessing finished.
std::string version
Version of the current preprocess.