]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/private/streamtempinput.h
Implement monitoring of file descriptors in wxMotif event loop.
[wxWidgets.git] / include / wx / private / streamtempinput.h
index 72f3957ec3e4d25b0074255904a0a556305dcc76..cf56481677ac6594f7679622a700e01048a57a33 100644 (file)
@@ -91,6 +91,19 @@ public:
         return !m_stream || m_stream->Eof();
     }
 
+    // read everything remaining until the EOF, this should only be called once
+    // the child process terminates and we know that no more data is coming
+    bool ReadAll()
+    {
+        while ( !Eof() )
+        {
+            if ( !Update() )
+                return false;
+        }
+
+        return true;
+    }
+
     // dtor puts the data buffered during this object lifetime into the
     // associated stream
     ~wxStreamTempInputBuffer()