]> git.saurik.com Git - wxWidgets.git/commitdiff
Added ::IsOk() to wxDataStream for error checking in
authorRobert Roebling <robert@roebling.de>
Sat, 17 Nov 2001 13:23:10 +0000 (13:23 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 17 Nov 2001 13:23:10 +0000 (13:23 +0000)
    stream classes used by wxDataStream.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/datstrm.h

index 74e5375e31234c22c18ac385852777dab7835eb2..f1043cb33d647a58747b5a6630b5f7cb706d87e4 100644 (file)
@@ -25,6 +25,8 @@ class WXDLLEXPORT wxDataInputStream
 public:
     wxDataInputStream(wxInputStream& s);
     ~wxDataInputStream();
+    
+    bool IsOk() { return m_input->IsOk(); }
 
     wxUint32 Read32();
     wxUint16 Read16();
@@ -55,6 +57,8 @@ public:
     wxDataOutputStream(wxOutputStream& s);
     ~wxDataOutputStream();
 
+    bool IsOk() { return m_output->IsOk(); }
+
     void Write32(wxUint32 i);
     void Write16(wxUint16 i);
     void Write8(wxUint8 i);