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

#include <Handle.h>

class OutPipe : public Handle {
  public:
      OutPipe();
      virtual ~OutPipe();
    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