diff options
author | pixel <pixel> | 2008-01-21 17:55:43 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-01-21 17:55:43 +0000 |
commit | b0f465417a0b64053a00b3353cc7b03eca3c444d (patch) | |
tree | 8f18201724abf633b56d63081467552a56b663fa /include/Input.h | |
parent | 18a3133823522b7d0454b59e48e9c066f5d15d1e (diff) |
Adding even more debug stats.
Diffstat (limited to 'include/Input.h')
-rw-r--r-- | include/Input.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Input.h b/include/Input.h index 2219273..eb4b2a9 100644 --- a/include/Input.h +++ b/include/Input.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Input.h,v 1.22 2007-05-30 11:57:08 pixel Exp $ */ +/* $Id: Input.h,v 1.23 2008-01-21 17:55:43 pixel Exp $ */ #ifndef __INPUT_H__ #define __INPUT_H__ @@ -36,7 +36,7 @@ class Input : public Handle { public: Input(const String & = "") throw (GeneralException); Input(const Input &); - virtual ~Input() {} + virtual ~Input() { nb_input--; } virtual bool CanWrite() const; virtual bool CanRead() const; virtual bool CanSeek() const; @@ -45,6 +45,7 @@ class Input : public Handle { virtual ssize_t GetSize() const; virtual time_t GetModif() const; virtual void SetZ(int = 9) throw (GeneralException); + static int GetNbInput(); struct openresults_t { String name; @@ -62,6 +63,7 @@ class Input : public Handle { private: int wrapopen(const String &, openresults_t *); + static int nb_input; }; class Stdin_t : public Input { |