|
Starts applications in Linux. Shouldn't be used in any other OS, due to system calls being used. Applications started this way will still run, even when the main application dies. Can also be used to request the status of an application. More...
#include <ArmarXCore/util/ScenarioManagerCommon/executor/LinuxStarter.h>
Public Member Functions | |
virtual std::string | getStatus (Data_Structure::ApplicationInstancePtr application, StatusManager statusManager) override |
Returns the status of an application. More... | |
virtual void | startApplication (Data_Structure::ApplicationInstancePtr application, StatusManager statusManager, const std::string &commandLineParameters="", bool printOnly=false) override |
Starts an application. More... | |
virtual void | startScenario (Data_Structure::ScenarioPtr scenario, StatusManager statusManager, const std::string &commandLineParameters="", bool printOnly=false) override |
Additional Inherited Members | |
Public Attributes inherited from ApplicationStarter | |
std::string | commandLineParameters |
Starts applications in Linux. Shouldn't be used in any other OS, due to system calls being used. Applications started this way will still run, even when the main application dies. Can also be used to request the status of an application.
Definition at line 42 of file LinuxStarter.h.
|
overridevirtual |
Returns the status of an application.
application | application whose status is returned |
Implements ApplicationStarter.
Definition at line 240 of file LinuxStarter.cpp.
|
overridevirtual |
Starts an application.
Forks, creates a daemon and starts the executable.
application | application to be started |
Implements ApplicationStarter.
Definition at line 109 of file LinuxStarter.cpp.
|
overridevirtual |
Implements ApplicationStarter.
Definition at line 88 of file LinuxStarter.cpp.