]> git.mxchange.org Git - simgear.git/commitdiff
Added is_open() so we can check if the open() succeeded.
authorcurt <curt>
Sat, 27 Mar 1999 14:04:25 +0000 (14:04 +0000)
committercurt <curt>
Sat, 27 Mar 1999 14:04:25 +0000 (14:04 +0000)
Misc/fgstream.hxx

index 85c2be9d85509e2b28913f96d68b556562cd74e2..e8b7c0bb311d1573090fe67c627fb042b46c94a4 100644 (file)
@@ -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.
 //