13 const std::filesystem::path antares_archive_path_;
14 const std::filesystem::path xpansion_output_dir_;
15 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger_;
16 const SimulationInputMode mode_;
17 const std::filesystem::path& simulation_dir_;
21 std::filesystem::path xpansion_output_dir,
22 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger,
23 SimulationInputMode mode,
24 const std::filesystem::path& simulation_dir = {}):
25 antares_archive_path_(std::move(antares_archive_path)),
26 xpansion_output_dir_(std::move(xpansion_output_dir)),
27 logger_(std::move(logger)),
29 simulation_dir_(simulation_dir)
33 void ExtractFiles()
const;
37 using LogUtils::XpansionError<std::runtime_error>::XpansionError;
42 using LogUtils::XpansionError<std::runtime_error>::XpansionError;
46 using areaAndIntercoPaths = std::pair<std::vector<std::filesystem::path>,
47 std::vector<std::filesystem::path>>;
48 [[nodiscard]] areaAndIntercoPaths getFiles()
const;
49 [[nodiscard]] areaAndIntercoPaths getFilesFromArchive()
const;
50 void checkProperNumberOfAreaFiles(
51 const std::vector<std::filesystem::path>& vect_area_files)
const;
52 void produceAreatxtFile(
const std::vector<std::filesystem::path>& vect_area_files)
const;
53 void checkProperNumberOfIntercoFiles(
54 const std::vector<std::filesystem::path>& vect_interco_files)
const;
55 void produceIntercotxtFile(
const std::vector<std::filesystem::path>& vect_interco_files)
const;