Skip to content

Commit

Permalink
fill main
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 19, 2024
1 parent a807358 commit 0b3794a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/solver/modeler/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,25 @@
*/

#include <antares/logs/logs.h>

#include <antares/solver/modeler/loadFiles/loadFiles.h>
#include <antares/solver/modeler/parameters/modelerParameters.h>
#include <antares/solver/modeler/parameters/parseModelerParameters.h>

using namespace Antares;
using namespace Antares::Solver;

int main(int argc, const char** argv)
{
if (argc < 1)
{
logs.error() << "No study path provided, exiting.";
return EXIT_FAILURE;
}

std::filesystem::path studyPath(argv[1]);

const auto parameters = parseModelerParameters(studyPath);
const auto libraries = LoadFiles::loadLibraries(studyPath);
const auto system = LoadFiles::loadSystem(studyPath, libraries);

return 0;
}
1 change: 1 addition & 0 deletions src/solver/modeler/parameters/parseModelerParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <fstream>

#include <antares/io/file.h>
#include <antares/solver/modeler/parameters/parseModelerParameters.h>

#include "encoder.hxx"

Expand Down

0 comments on commit 0b3794a

Please sign in to comment.