| 1 |
#ifndef INCLUDED_FORK_H_ |
| 2 |
#define INCLUDED_FORK_H_ |
| 3 |
|
| 4 |
namespace FBB |
| 5 |
{ |
| 6 |
class Redirector; |
| 7 |
class ChildProcess; |
| 8 |
class ParentProcess; |
| 9 |
|
| 10 |
class Fork |
| 11 |
{ |
| 12 |
protected: |
| 13 |
Redirector &d_redirector; |
| 14 |
ChildProcess &d_child; |
| 15 |
ParentProcess &d_parent; |
| 16 |
|
| 17 |
public: |
| 18 |
Fork(Redirector &redirector, ChildProcess &child, |
| 19 |
ParentProcess &parent) |
| 20 |
: |
| 21 |
d_redirector(redirector), |
| 22 |
d_child(child), |
| 23 |
d_parent(parent) |
| 24 |
{} |
| 25 |
|
| 26 |
void fork() const; |
| 27 |
|
| 28 |
private: |
| 29 |
Fork(Fork const &other); // NI |
| 30 |
Fork &operator=(Fork const &other); // NI |
| 31 |
|
| 32 |
}; |
| 33 |
} |
| 34 |
|
| 35 |
#endif |