2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2015-06-01 10:28:29 -05:00
|
|
|
#include "trick/SimControlPanel.hh"
|
2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
Trick::SimControlPanel::SimControlPanel() {
|
2015-06-01 10:28:29 -05:00
|
|
|
command += std::string("trick-simcontrol");
|
2015-02-26 09:02:31 -06:00
|
|
|
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();
|
|
|
|
}
|