Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
AreaParser.h
1#pragma once
2#include <filesystem>
3#include <fstream>
4#include <vector>
5
6#include "antares-xpansion/xpansion_interfaces/LogUtils.h"
7
8struct AreaFileError : LogUtils::XpansionError<std::ios_base::failure> {
9 using LogUtils::XpansionError<std::ios_base::failure>::XpansionError;
10};
12 std::string error_message = "";
13 std::vector<std::string> areas;
14};
15
16struct AreaParser {
17 static AreaFileData ReadAreaFile(const std::filesystem::path& areaFile);
18 static std::vector<std::string> ReadAreaFile(
19 std::istringstream& areaFileInStringStream);
20 static std::vector<std::string> ReadLineByLineArea(std::istream& stream);
21};
Definition AreaParser.h:11
Definition AreaParser.h:8
Definition AreaParser.h:16