summaryrefslogtreecommitdiff
path: root/includes/Output.h
diff options
context:
space:
mode:
authorPixel <Pixel>2002-07-21 11:12:13 +0000
committerPixel <Pixel>2002-07-21 11:12:13 +0000
commit6528f07c516efe4d3b344f01740067878d5d9a43 (patch)
treef097e6797752dffe7b498a4f153e83bdeb59f024 /includes/Output.h
parentb54786a5120b48bd98fc4b199176d45bda3c2d67 (diff)
Hello Baltisot
Diffstat (limited to 'includes/Output.h')
-rw-r--r--includes/Output.h45
1 files changed, 45 insertions, 0 deletions
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 <String.h>
+#include <Handle.h>
+
+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