-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
205 additions
and
255 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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
#ifndef PROXY_PROXY_FMU_FMU_HPP | ||
#define PROXY_PROXY_FMU_FMU_HPP | ||
|
||
#include "remote_info.hpp" | ||
|
||
#include "ecos/fmi/fmu.hpp" | ||
#include "ecos/fmi/model_description.hpp" | ||
#include "ecos/fmi/slave.hpp" | ||
|
||
#include <optional> | ||
|
||
namespace ecos::proxyfmu | ||
{ | ||
|
||
class proxy_fmu : public fmi::fmu | ||
{ | ||
|
||
private: | ||
const std::filesystem::path fmuPath_; | ||
const fmi::model_description modelDescription_; | ||
|
||
const std::optional<remote_info> remote_; | ||
|
||
public: | ||
explicit proxy_fmu(const std::filesystem::path& fmuPath, std::optional<remote_info> remote = std::nullopt); | ||
|
||
[[nodiscard]] const fmi::model_description& get_model_description() const override; | ||
|
||
std::unique_ptr<fmi::slave> new_instance(const std::string& instanceName) override; | ||
|
||
~proxy_fmu() override = default; | ||
}; | ||
|
||
} // namespace proxyfmu::client | ||
|
||
|
||
#endif // PROXY_PROXY_FMU_FMU_HPP |
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
Oops, something went wrong.