mirror of
https://github.com/nasa/trick.git
synced 2024-12-22 14:32:24 +00:00
30 lines
563 B
C++
30 lines
563 B
C++
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "sim_services/ExternalApplications/include/SimControlPanel.hh"
|
||
|
|
||
|
Trick::SimControlPanel::SimControlPanel() {
|
||
|
command += std::string("sim_control");
|
||
|
auto_exit = false;
|
||
|
}
|
||
|
|
||
|
std::string Trick::SimControlPanel::create_arguments_string() {
|
||
|
ExternalApplication::create_arguments_string();
|
||
|
|
||
|
std::ostringstream oss;
|
||
|
|
||
|
if (host_source != NONE) {
|
||
|
oss << " " << host;
|
||
|
}
|
||
|
|
||
|
if (port_source != NONE) {
|
||
|
oss << " " << port;
|
||
|
}
|
||
|
|
||
|
if (auto_exit) {
|
||
|
oss << " -auto_exit";
|
||
|
}
|
||
|
|
||
|
return oss.str();
|
||
|
}
|