Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
ChronicleMapProvider.h
1//
2// Created by marechaljas on 29/04/2022.
3//
4
5#ifndef ANTARESXPANSION_TESTS_CPP_LP_NAMER_CHRONICLEMAPPROVIDERTEST_CPP_CHRONICLEMAPPROVIDER_H_
6#define ANTARESXPANSION_TESTS_CPP_LP_NAMER_CHRONICLEMAPPROVIDERTEST_CPP_CHRONICLEMAPPROVIDER_H_
7#include <filesystem>
8#include <fstream>
9#include <gtest/gtest.h>
10#include <utility>
11
12#include "antares-xpansion/lpnamer/helper/ProblemGenerationLogger.h"
13#include "antares-xpansion/lpnamer/model/ChronicleMapReader.h"
14
16{
17public:
19 std::filesystem::path ts_info_root,
20 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger):
21 ts_info_root_(std::move(ts_info_root)),
22 logger_(logger)
23 {
24 }
25
26 [[nodiscard]] std::map<unsigned int, unsigned int> GetMap(const std::string& link_from,
27 const std::string& link_to) const;
28
29private:
30 std::filesystem::path GetPath(const std::string& link_from, const std::string& link_to) const;
31 std::filesystem::path ts_info_root_;
32 ScenarioToChronicleReader chronicle_map_reader_;
33 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger_;
34};
35
36#endif // ANTARESXPANSION_TESTS_CPP_LP_NAMER_CHRONICLEMAPPROVIDERTEST_CPP_CHRONICLEMAPPROVIDER_H_
Definition ChronicleMapProvider.h:16
Definition ChronicleMapReader.h:11