28 #include <ext/stdio_filebuf.h>
40 const inline int readFd()
const;
41 const inline int writeFd()
const;
69 Spawn(
const char*
const argv[],
bool fUseStdErr =
false,
bool fWithPath =
false,
const char*
const envp[] = NULL);
Spawn & operator=(const Spawn &orig)
Prevent assignment.
__gnu_cxx::stdio_filebuf< char > * m_pReadBuf
int wait()
Wait until child process has terminated.
std::istream & inStream()
Access the child process stdout as in stream to read from.
const int writeFd() const
std::ostream & outStream()
Access the child process stdin as out stream to write to the process.
Spawn(const char *const argv[], bool fUseStdErr=false, bool fWithPath=false, const char *const envp[]=NULL)
Spawns a child process.
__gnu_cxx::stdio_filebuf< char > * m_pWriteBuf
Wrapping pipe in a class makes sure they are closed when we leave scope.