From e9baf5ef2e1031036d7220ee4aa5d3f597fd8dcd Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Thu, 12 Dec 2024 16:25:31 +0100 Subject: [PATCH] add converter header --- src/solver/systemParser/CMakeLists.txt | 1 + src/solver/systemParser/converter.cpp | 2 ++ .../antares/solver/systemParser/converter.h | 34 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 src/solver/systemParser/include/antares/solver/systemParser/converter.h diff --git a/src/solver/systemParser/CMakeLists.txt b/src/solver/systemParser/CMakeLists.txt index a89664fe2d..79e1262644 100644 --- a/src/solver/systemParser/CMakeLists.txt +++ b/src/solver/systemParser/CMakeLists.txt @@ -5,6 +5,7 @@ set(SOURCES converter.cpp encoders.hxx include/antares/solver/systemParser/parser.h + include/antares/solver/systemParser/converter.h include/antares/solver/systemParser/system.h ) diff --git a/src/solver/systemParser/converter.cpp b/src/solver/systemParser/converter.cpp index 86b0cbb70d..71f4b76a04 100644 --- a/src/solver/systemParser/converter.cpp +++ b/src/solver/systemParser/converter.cpp @@ -19,7 +19,9 @@ * along with Antares_Simulator. If not, see . */ +#include "antares/solver/systemParser/converter.h" #include "antares/solver/systemParser/system.h" + #include "antares/study/system-model/system.h" using namespace Antares::Study; diff --git a/src/solver/systemParser/include/antares/solver/systemParser/converter.h b/src/solver/systemParser/include/antares/solver/systemParser/converter.h new file mode 100644 index 0000000000..655763e479 --- /dev/null +++ b/src/solver/systemParser/include/antares/solver/systemParser/converter.h @@ -0,0 +1,34 @@ +/* + * Copyright 2007-2024, RTE (https://www.rte-france.com) + * See AUTHORS.txt + * SPDX-License-Identifier: MPL-2.0 + * This file is part of Antares-Simulator, + * Adequacy and Performance assessment for interconnected energy networks. + * + * Antares_Simulator is free software: you can redistribute it and/or modify + * it under the terms of the Mozilla Public Licence 2.0 as published by + * the Mozilla Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * Antares_Simulator is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Mozilla Public Licence 2.0 for more details. + * + * You should have received a copy of the Mozilla Public Licence 2.0 + * along with Antares_Simulator. If not, see . + */ + +#pragma once + +#include + +#include "parser.h" + +namespace Antares::Solver::SystemConverter +{ + +Study::SystemModel::System convert(const SystemParser::System& parserSystem); + +} // namespace Antares::Solver::SystemConverter +