yo/concrete/fork2/parentprocess/parentprocess.h
raw| 1 | #ifndef INCLUDED_PARENTPROCESS_H_ |
| 2 | #define INCLUDED_PARENTPROCESS_H_ |
| 3 | |
| 4 | #ifndef INCLUDED_IOSFWD_ |
| 5 | #include <iosfwd> |
| 6 | #define INCLUDED_IOSFWD_ |
| 7 | #endif |
| 8 | |
| 9 | namespace FBB |
| 10 | { |
| 11 | class ParentProcess |
| 12 | { |
| 13 | public: |
| 14 | virtual ~ParentProcess() |
| 15 | {} |
| 16 | |
| 17 | virtual void run // pure virtual function: implement in |
| 18 | ( // derived classes |
| 19 | int pid, |
| 20 | std::istream &readChildCout, |
| 21 | std::istream &readChildCerr, |
| 22 | std::ostream &writeChildCin |
| 23 | ) = 0; |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | #endif |