#ifndef __INPUT_H__ #define __INPUT_H__ #ifdef __cplusplus #include #include #include #include class Input : public Handle { public: Input(String = "") throw (GeneralException); Input(const Input &); virtual ~Input() {} virtual bool CanWrite(); virtual bool CanRead(); virtual bool CanSeek(); virtual off_t seek(off_t, int) throw (GeneralException); 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 Input { public: Stdin_t(); virtual ~Stdin_t() {} virtual bool CanSeek(); virtual String GetName(); }; extern Stdin_t Stdin; #else #error This only works with a C++ compiler #endif #endif