#ifndef __OUTPUT_H__ #define __OUTPUT_H__ #ifdef __cplusplus #include #include #include #include class Output : public Handle { public: Output(String = "", int trunc = 1) throw (GeneralException); Output(const Output &); virtual ~Output() {} virtual bool CanWrite(); virtual bool CanRead(); virtual bool CanSeek(); virtual off_t seek(off_t, int) throw (GeneralException); virtual off_t tell(); virtual String GetName(); protected: String n; off_t size; time_t date_modif; }; class Stdout_t : public Output { public: Stdout_t(); virtual ~Stdout_t() {} virtual bool CanSeek(); virtual String GetName(); }; class Stderr_t : public Handle { public: Stderr_t(); virtual ~Stderr_t() {} virtual bool CanWrite(); virtual bool CanRead(); virtual bool CanSeek(); virtual String GetName(); }; extern Stdout_t Stdout; extern Stderr_t Stderr; #else #error This only works with a C++ compiler #endif #endif