-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version with files (empty implementation tmp)
- Loading branch information
1 parent
73f57a2
commit 5ba53ee
Showing
9 changed files
with
146 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/cpp/lpnamer/problem_modifier/MPSFileProblemProviderAdapter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Created by marechaljas on 09/11/22. | ||
// | ||
|
||
#include "MPSFileProblemProviderAdapter.h" | ||
std::shared_ptr<Problem> MPSFileProblemProviderAdapter::provide_problem( | ||
const std::string& solver_name) const { | ||
return std::shared_ptr<Problem>(); | ||
} | ||
MPSFileProblemProviderAdapter::MPSFileProblemProviderAdapter( | ||
const std::filesystem::path root, const std::string& problem_name) | ||
: lp_dir_(root), problem_name_(problem_name) {} |
16 changes: 16 additions & 0 deletions
16
src/cpp/lpnamer/problem_modifier/MPSFileProblemProviderAdapter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Created by marechaljas on 09/11/22. | ||
// | ||
|
||
#pragma once | ||
|
||
#include "IProblemProviderPort.h" | ||
class MPSFileProblemProviderAdapter : public IProblemProviderPort { | ||
public: | ||
MPSFileProblemProviderAdapter(const std::filesystem::path root, | ||
const std::string& problem_name); | ||
[[nodiscard]] std::shared_ptr<Problem> provide_problem( | ||
const std::string& solver_name) const override; | ||
const std::filesystem::path lp_dir_; | ||
const std::string& problem_name_; | ||
}; |
12 changes: 12 additions & 0 deletions
12
src/cpp/lpnamer/problem_modifier/ProblemVariablesFileAdapter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Created by marechaljas on 09/11/22. | ||
// | ||
|
||
#include "ProblemVariablesFileAdapter.h" | ||
ProblemVariables ProblemVariablesFileAdapter::Provide() { | ||
return ProblemVariables(); | ||
} | ||
ProblemVariablesFileAdapter::ProblemVariablesFileAdapter( | ||
const ProblemData data, const std::vector<struct ActiveLink> vector_1, | ||
std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> shared_ptr_1) | ||
: problem_data_(data), active_links_(vector_1), logger_(shared_ptr_1) {} |
19 changes: 19 additions & 0 deletions
19
src/cpp/lpnamer/problem_modifier/ProblemVariablesFileAdapter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Created by marechaljas on 09/11/22. | ||
// | ||
|
||
#pragma once | ||
|
||
#include "IProblemVariablesProviderPort.h" | ||
#include "LinkProblemsGenerator.h" | ||
class ProblemVariablesFileAdapter : public IProblemVariablesProviderPort { | ||
public: | ||
ProblemVariablesFileAdapter( | ||
const ProblemData data, const std::vector<struct ActiveLink> vector_1, | ||
std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> | ||
shared_ptr_1); | ||
ProblemVariables Provide() override; | ||
const ProblemData problem_data_; | ||
const std::vector<struct ActiveLink> active_links_; | ||
std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger_; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters