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