diff options
Diffstat (limited to 'include/Output.h')
-rw-r--r-- | include/Output.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Output.h b/include/Output.h index b520277..64209b8 100644 --- a/include/Output.h +++ b/include/Output.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Output.h,v 1.15 2007-05-30 11:57:08 pixel Exp $ */ +/* $Id: Output.h,v 1.16 2008-01-21 17:55:43 pixel Exp $ */ #ifndef __OUTPUT_H__ #define __OUTPUT_H__ @@ -31,12 +31,13 @@ class Output : public Handle { public: Output(String = "", int create = 1, int trunc = 1) throw (GeneralException); Output(const Output &); - virtual ~Output() {} + virtual ~Output() { nb_output--; } virtual bool CanWrite() const; virtual bool CanRead() const; virtual bool CanSeek() const; virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException); virtual String GetName() const; + static int GetNbOutput(); protected: String n; @@ -45,6 +46,7 @@ class Output : public Handle { private: int wrapopen(const String &, int, int); + static int nb_output; }; class Stdout_t : public Output { |