summaryrefslogtreecommitdiff
path: root/include/OutPipe.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/OutPipe.h')
-rw-r--r--include/OutPipe.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/OutPipe.h b/include/OutPipe.h
new file mode 100644
index 0000000..9861d6d
--- /dev/null
+++ b/include/OutPipe.h
@@ -0,0 +1,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