From 6528f07c516efe4d3b344f01740067878d5d9a43 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 21 Jul 2002 11:12:13 +0000 Subject: Hello Baltisot --- includes/Output.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 includes/Output.h (limited to 'includes/Output.h') diff --git a/includes/Output.h b/includes/Output.h new file mode 100644 index 0000000..32d4e66 --- /dev/null +++ b/includes/Output.h @@ -0,0 +1,45 @@ +#ifndef __OUTPUT_H__ +#define __OUTPUT_H__ +#ifdef __cplusplus + +#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 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 -- cgit v1.2.3