1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#ifndef _EXTPIPE_H #define _EXTPIPE_H #include <sys/types.h> #include <stdio.h> class cExtPipe { private: pid_t pid; int f_stdout; int f_stderr; public: cExtPipe(void); ~cExtPipe(); int Out() const { return f_stdout; } int Err() const { return f_stderr; } bool Open(const char *Command); int Close(int &status); }; #endif