Skip to content

Commit

Permalink
add readLibraries.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 19, 2024
1 parent ffe1554 commit e8da375
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/solver/modeler/loadFiles/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set(SOURCES
readSystem.cpp
readLibraries.cpp
)

# Create the library
Expand All @@ -19,6 +20,7 @@ target_link_libraries(loadFiles
PRIVATE
io
Antares::systemParser
Antares::modelParser
Antares::modelConverter
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

#include <filesystem>

#include "antares/study/system-model/system.h"
#include <antares/study/system-model/library.h>
#include <antares/study/system-model/system.h>

namespace Antares::Solver::LoadFiles
{
Expand Down
38 changes: 38 additions & 0 deletions src/solver/modeler/loadFiles/readLibraries.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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/io/file.h>
#include <antares/solver/modelParser/parser.h>
#include <antares/solver/modelConverter/modelConverter.h>
#include "antares/solver/loadFiles/loadFiles.h"

namespace fs = std::filesystem;

namespace Antares::Solver::LoadFiles
{

Study::SystemModel::Library loadSingleLibrary(const fs::path& filePath)
{
Study::SystemModel::Library lib;
return lib;
}

} // namespace Antares::Solver::LoadFiles

0 comments on commit e8da375

Please sign in to comment.