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 <gtest/gtest.h>
8
9#include <filesystem>
10#include <fstream>
11#include <utility>
12
13#include "antares-xpansion/lpnamer/model/ChronicleMapReader.h"
14#include "antares-xpansion/lpnamer/helper/ProblemGenerationLogger.h"
15
17 public:
19 std::filesystem::path ts_info_root,
20 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger)
21 : ts_info_root_(std::move(ts_info_root)), logger_(logger) {}
22
23 [[nodiscard]] std::map<unsigned int, unsigned int> GetMap(
24 std::string const& link_from, std::string const& link_to) const;
25
26 private:
27 std::filesystem::path GetPath(const std::string& link_from,
28 const std::string& link_to) const;
29 std::filesystem::path ts_info_root_;
30 ScenarioToChronicleReader chronicle_map_reader_;
31 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger_;
32};
33
34#endif // ANTARESXPANSION_TESTS_CPP_LP_NAMER_CHRONICLEMAPPROVIDERTEST_CPP_CHRONICLEMAPPROVIDER_H_
Definition ChronicleMapProvider.h:16
Definition ChronicleMapReader.h:10