3 #ifndef SZA_UTIL_COPROC_H
4 #define SZA_UTIL_COPROC_H
59 CoProc(std::string exe);
63 CoProc(
char *exe, FILE** stdInFp, FILE** stdOutFp, FILE** stdErrFp);
65 CoProc(
char *exe,
char** argv,
66 FILE** stdInFp, FILE** stdOutFp, FILE** stdErrFp);
68 void fork(
char *exe,
char** argv,
69 FILE** stdInFp, FILE** stdOutFp, FILE** stdErrFp);
71 CoProc::Pipe* getPipe();
73 CoProc::Pipe* stdIn();
74 CoProc::Pipe* stdOut();
75 CoProc::Pipe* stdErr();
84 static std::vector<std::string> split(std::string command);
93 CoProc::Pipe* stdOut_;
94 CoProc::Pipe* stdErr_;
103 #endif // End #ifndef SZA_UTIL_COPROC_H