summaryrefslogtreecommitdiff
path: root/includes/Input.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Input.h')
-rw-r--r--includes/Input.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/includes/Input.h b/includes/Input.h
new file mode 100644
index 0000000..7091258
--- /dev/null
+++ b/includes/Input.h
@@ -0,0 +1,41 @@
+#ifndef __INPUT_H__
+#define __INPUT_H__
+#ifdef __cplusplus
+
+#include <sys/types.h>
+#include <time.h>
+#include <String.h>
+#include <Handle.h>
+
+class Input : public Handle {
+ public:
+ Input(String = "") throw (GeneralException);
+ Input(const Input &);
+ virtual ~Input() {}
+ virtual bool CanWrite();
+ virtual bool CanRead();
+ 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 Handle {
+ public:
+ Stdin_t();
+ virtual ~Stdin_t() {}
+ virtual bool CanWrite();
+ virtual bool CanRead();
+ virtual String GetName();
+};
+
+extern Stdin_t Stdin;
+
+#else
+#error This only works with a C++ compiler
+#endif
+#endif