diff options
author | Pixel <Pixel> | 2002-07-21 11:12:13 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-07-21 11:12:13 +0000 |
commit | 6528f07c516efe4d3b344f01740067878d5d9a43 (patch) | |
tree | f097e6797752dffe7b498a4f153e83bdeb59f024 /includes/Input.h | |
parent | b54786a5120b48bd98fc4b199176d45bda3c2d67 (diff) |
Hello Baltisot
Diffstat (limited to 'includes/Input.h')
-rw-r--r-- | includes/Input.h | 41 |
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 |