We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 634cbae commit 101510eCopy full SHA for 101510e
co_sim_io/impl/connection.hpp
@@ -84,7 +84,7 @@ class Connection
84
ctrl_info.Set("identifier", "run_control");
85
86
while(true) {
87
- auto info = ImportInfo(ctrl_info);
+ Info info = ImportInfo(ctrl_info);
88
const std::string control_signal = info.Get<std::string>("control_signal");
89
CheckIfNameIsValid(control_signal);
90
if (control_signal == "exit") {
@@ -100,8 +100,8 @@ class Connection
100
err_msg << "\n end" << std::endl;
101
CO_SIM_IO_ERROR << err_msg.str();
102
}
103
- Info info;
104
- it_fct->second(info);
+ it_fct->second(info.Get<Info>("settings", Info{})); // pass settings if specified
+
105
106
107
return Info(); // TODO use this
0 commit comments