diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Handle.h | 2 | ||||
-rw-r--r-- | includes/Input.h | 5 | ||||
-rw-r--r-- | includes/Output.h | 10 |
3 files changed, 10 insertions, 7 deletions
diff --git a/includes/Handle.h b/includes/Handle.h index fdaea2c..967e221 100644 --- a/includes/Handle.h +++ b/includes/Handle.h @@ -35,6 +35,7 @@ class Handle : public Base { virtual void SetZ(int) throw (GeneralException); protected: Handle(int h); + off_t itell; private: ssize_t uwrite(const void *, size_t) throw (GeneralException); ssize_t uread(void *, size_t); @@ -42,7 +43,6 @@ class Handle : public Base { bool closed, nonblock; gzFile zfile; int z; - off_t itell; }; Handle & operator<<(Handle &, const String &); diff --git a/includes/Input.h b/includes/Input.h index f8cf9be..8741ebc 100644 --- a/includes/Input.h +++ b/includes/Input.h @@ -27,12 +27,11 @@ class Input : public Handle { time_t date_modif; }; -class Stdin_t : public Handle { +class Stdin_t : public Input { public: Stdin_t(); virtual ~Stdin_t() {} - virtual bool CanWrite(); - virtual bool CanRead(); + virtual bool CanSeek(); virtual String GetName(); }; diff --git a/includes/Output.h b/includes/Output.h index ef6806c..b7c8fb8 100644 --- a/includes/Output.h +++ b/includes/Output.h @@ -2,6 +2,8 @@ #define __OUTPUT_H__ #ifdef __cplusplus +#include <sys/types.h> +#include <time.h> #include <String.h> #include <Handle.h> @@ -19,14 +21,15 @@ class Output : public Handle { protected: String n; + off_t size; + time_t date_modif; }; -class Stdout_t : public Handle { +class Stdout_t : public Output { public: Stdout_t(); virtual ~Stdout_t() {} - virtual bool CanWrite(); - virtual bool CanRead(); + virtual bool CanSeek(); virtual String GetName(); }; @@ -36,6 +39,7 @@ class Stderr_t : public Handle { virtual ~Stderr_t() {} virtual bool CanWrite(); virtual bool CanRead(); + virtual bool CanSeek(); virtual String GetName(); }; |