trick/trick_source/sim_services/ExternalApplications/SimControlPanel.cpp

30 lines
532 B
C++
Raw Normal View History

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