From 2c920ae1dfe12fe00c92c89b5d1615288ef9067a Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 27 Mar 1999 14:04:25 +0000 Subject: [PATCH] Added is_open() so we can check if the open() succeeded. --- Misc/fgstream.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Misc/fgstream.hxx b/Misc/fgstream.hxx index 85c2be9d..e8b7c0bb 100644 --- a/Misc/fgstream.hxx +++ b/Misc/fgstream.hxx @@ -78,6 +78,8 @@ public: void close() { gzbuf.close(); } + bool is_open() { return gzbuf.is_open(); } + private: // Not defined! fg_gzifstream( const fg_gzifstream& ); @@ -98,6 +100,9 @@ istream& skipcomment( istream& in ); #endif /* _FGSTREAM_HXX */ // $Log$ +// Revision 1.9 1999/03/27 14:04:25 curt +// Added is_open() so we can check if the open() succeeded. +// // Revision 1.8 1999/03/02 01:01:55 curt // Tweaks for compiling with native SGI compilers. // -- 2.39.5