summaryrefslogtreecommitdiff
path: root/include/InPipe.h
blob: 251523d2af11596ed6bd0d14cc8b5a9cc042e03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __INPIPE_H__
#define __INPIPE_H__
#ifdef __cplusplus

#include <Handle.h>

class InPipe : public Handle {
  public:
      InPipe();
      virtual ~InPipe();
    void Hook();
    virtual bool CanWrite();
    virtual bool CanRead();
    virtual String GetName();
  private:
    int p[2], hooked;
};

#else
#error This only works with a C++ compiler
#endif
#endif