]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stream.h
Added wxExtDialog and sample.
[wxWidgets.git] / include / wx / stream.h
index 0b572026edc1d67b22c256397bdd379d6c656433..508ca1a25801a093fdff136eab821fd5cdb6cc5d 100644 (file)
@@ -117,6 +117,11 @@ class WXDLLEXPORT wxStreamBuffer {
 // wxStream: base classes
 // ---------------------------------------------------------------------------
 
+#define wxStream_NOERROR    wxSTR_NOERROR
+#define wxStream_EOF        wxSTR_EOF
+#define wxStream_WRITE_ERR  wxSTR_WRITE_ERROR
+#define wxStream_READ_ERR   wxSTR_READ_ERROR
+  
 typedef enum {
   wxStream_NOERROR = 0,
   wxStream_EOF,
@@ -156,6 +161,7 @@ class WXDLLEXPORT wxInputStream: public wxStreamBase {
   char GetC();
   virtual wxInputStream& Read(void *buffer, size_t size);
   wxInputStream& Read(wxOutputStream& stream_out);
+  wxString ReadLine();
 
   // Position functions
   off_t SeekI(off_t pos, wxSeekMode mode = wxFromStart);
@@ -196,6 +202,7 @@ class WXDLLEXPORT wxOutputStream: public wxStreamBase {
 
   virtual wxOutputStream& Write(const void *buffer, size_t size);
   wxOutputStream& Write(wxInputStream& stream_in);
+  void WriteLine(const wxString& line);
 
   off_t SeekO(off_t pos, wxSeekMode mode = wxFromStart);
   off_t TellO() const;