24 const std::filesystem::path& antaresIntercoFile,
25 const std::filesystem::path& areaFile,
26 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger);
28 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger)
30 std::vector<IntercoFileData> ReadAntaresIntercoFile(
31 const std::filesystem::path& antaresIntercoFile)
const;
32 std::vector<IntercoFileData> ReadAntaresIntercoFile(
33 std::istringstream& antaresIntercoFileInStringStream)
const;
35 std::vector<IntercoFileData> ReadLineByLineInterco(
36 std::istream& stream)
const;
37 std::vector<CandidateData> readCandidateData(
38 const std::filesystem::path& candidateFile)
const;
41 :
public LogUtils::XpansionError<std::runtime_error> {
42 using LogUtils::XpansionError<std::runtime_error>::XpansionError;
46 bool checkArea(std::string
const& areaName_p)
const;
47 CandidateData readCandidateSection(
const std::filesystem::path& candidateFile,
49 const std::string& sectionName,
50 std::ostringstream& err_msg)
const;
52 std::map<std::string, int> _intercoIndexMap;
53 std::vector<IntercoFileData> _intercoFileData;
54 std::vector<std::string> _areaNames;
55 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger_;
56 void ProcessAreaFile(
const std::filesystem::path& areaFile);