14 #ifndef STARTER_EXECUTOR_HPP
15 #define STARTER_EXECUTOR_HPP
17 #include <Poco/Pipe.h>
18 #include <Poco/PipeStream.h>
26 namespace starter_const
44 explicit StarterExecutor(
const std::string& homeDir_,
const std::string& starterFileName_=
"");
48 unsigned int wait(
unsigned int waitTime=0);
60 pid_t
getPid(
void)
const {
return pid;}
63 static bool isExistShellScript(
const std::string& homeDir,
const std::string& scriptName);
66 static std::string
getStarterFullName(
const std::string& homeDir,
const std::string& scriptName);
70 Poco::PipeInputStream outInputStream;
71 Poco::PipeInputStream errInputStream;
73 std::stringstream outStream;
74 std::stringstream errStream;
76 std::string starterFileName;
78 std::string inputStreamFileName;
87 #endif // STARTER_EXECUTOR_HPP