Skip to content

Commit

Permalink
system converter
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 11, 2024
1 parent 9a478db commit 0f8fb8a
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/solver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ add_subdirectory(lps)
add_subdirectory(misc)
add_subdirectory(modelConverter)
add_subdirectory(modelParser)
add_subdirectory(systemConverter)
add_subdirectory(systemParser)
add_subdirectory(modeler)
add_subdirectory(optimisation)
Expand Down
25 changes: 25 additions & 0 deletions src/solver/systemConverter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
set(SOURCES
systemConverter.cpp
include/antares/solver/systemConverter/systemConverter.h
)

# Create the library
add_library(systemConverter STATIC ${SOURCES})
add_library(Antares::systemConverter ALIAS systemConverter)

# Specify include directories
target_include_directories(systemConverter
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

# Link dependencies (if any)
target_link_libraries(systemConverter
PRIVATE
Antares::antares-study-system-model
Antares::systemParser
)

install(DIRECTORY include/antares
DESTINATION "include"
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* 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 <https://opensource.org/license/mpl-2-0/>.
*/

#pragma once
#include <stdexcept>

#include "antares/solver/systemParser/library.h"

/* namespace Antares */
/* { */
/* namespace Study::SystemModel */
/* { */
/* class Library; */
/* } */

/* namespace Solver::ModelParser */
/* { */
/* class Library; */
/* } */
/* } // namespace Antares */

namespace Antares::Solver::SystemConverter
{
/* class UnknownTypeException: public std::runtime_error */
/* { */
/* public: */
/* explicit UnknownTypeException(ModelParser::ValueType type); */
/* }; */

/* Antares::Study::SystemModel::Library convert(const Antares::Solver::ModelParser::Library& library); */
} // namespace Antares::Solver::SystemConverter
26 changes: 26 additions & 0 deletions src/solver/systemConverter/systemConverter.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* 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 <https://opensource.org/license/mpl-2-0/>.
*/

#include "antares/solver/systemConverter/systemConverter.h"

namespace Antares::Solver::SystemConverter
{
} // namespace Antares::Solver::SystemConverter

0 comments on commit 0f8fb8a

Please sign in to comment.