#ifndef __INPUT_H__ #define __INPUT_H__ #ifdef __cplusplus #include #include #include #include class Input : public Handle { public: Input(String = "") throw (GeneralException); virtual ~Input() {} virtual bool CanWrite(); virtual bool CanRead(); virtual String GetName(); virtual ssize_t GetSize(); virtual time_t GetModif(); protected: String n; off_t size; time_t date_modif; }; class Stdin_t : public Handle { public: Stdin_t(); virtual ~Stdin_t() {} virtual bool CanWrite(); virtual bool CanRead(); virtual String GetName(); }; extern Stdin_t Stdin; #else #error This only works with a C++ compiler #endif #endif