#ifndef __INPIPE_H__ #define __INPIPE_H__ #ifdef __cplusplus #include 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