]> git.saurik.com Git - wxWidgets.git/commitdiff
* wxStream doc update
authorGuilhem Lavaux <lavaux@easynet.fr>
Fri, 9 Jul 1999 17:10:49 +0000 (17:10 +0000)
committerGuilhem Lavaux <lavaux@easynet.fr>
Fri, 9 Jul 1999 17:10:49 +0000 (17:10 +0000)
* wxHTTP fix

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

docs/latex/wx/classes.tex
docs/latex/wx/datstrm.tex
docs/latex/wx/inputstr.tex
docs/latex/wx/outptstr.tex
docs/latex/wx/stream.tex
src/common/http.cpp

index 5bb53661a682440e7562f26188d3867c9ff967e9..9281918cb95303e7102134e01e673f16cd240ef7 100644 (file)
@@ -11,6 +11,7 @@
 \input autoobj.tex
 \input busycurs.tex
 \input button.tex
 \input autoobj.tex
 \input busycurs.tex
 \input button.tex
+\input strmbfrd.tex
 \input bitmap.tex
 \input bbutton.tex
 \input bmpdatob.tex
 \input bitmap.tex
 \input bbutton.tex
 \input bmpdatob.tex
 \input tempfile.tex
 \input text.tex
 \input txtdatob.tex
 \input tempfile.tex
 \input text.tex
 \input txtdatob.tex
+\input txtstrm.tex
 \input textdlg.tex
 \input txtdrptg.tex
 \input valtext.tex
 \input textdlg.tex
 \input txtdrptg.tex
 \input valtext.tex
index daafad94922b09e15b38da2a9040104559b24251..c33104b400d5366de9f29da46fa3ecc2ea3beefc 100644 (file)
@@ -1,15 +1,12 @@
+% ----------------------------------------------------------------------------
+% wxDataInputStream
+% ----------------------------------------------------------------------------
 \section{\class{wxDataInputStream}}\label{wxdatainputstream}
 
 This class provides functions that read data types in a
 portable way. So, a file written by an Intel processor can be read by a
 Sparc or anything else.
 
 \section{\class{wxDataInputStream}}\label{wxdatainputstream}
 
 This class provides functions that read data types in a
 portable way. So, a file written by an Intel processor can be read by a
 Sparc or anything else.
 
-\wxheading{Derived from}
-
-\helpref{wxFilterInputStream}{wxfilterinputstream}\\
-\helpref{wxInputStream}{wxinputstream}\\
-\helpref{wxStreamBase}{wxstreambase}
-
 \wxheading{Include files}
 
 <wx/datstrm.h>
 \wxheading{Include files}
 
 <wx/datstrm.h>
@@ -57,12 +54,6 @@ Reads a 32 bit integer from the stream.
 
 Reads a double (IEEE encoded) from the stream.
 
 
 Reads a double (IEEE encoded) from the stream.
 
-\membersection{wxDataInputStream::ReadLine}
-
-\func{wxString}{wxDataInputStream::ReadLine}{\void}
-
-Reads a line from the stream. A line is a string which ends with \\n or \\r\\n.
-
 \membersection{wxDataInputStream::ReadString}
 
 \func{wxString}{wxDataInputStream::ReadString}{\void}
 \membersection{wxDataInputStream::ReadString}
 
 \func{wxString}{wxDataInputStream::ReadString}{\void}
@@ -71,6 +62,10 @@ Reads a string from a stream. Actually, this function first reads a long integer
 specifying the length of the string (without the last null character) and then
 reads the string.
 
 specifying the length of the string (without the last null character) and then
 reads the string.
 
+% ----------------------------------------------------------------------------
+% wxDataOutputStream
+% ----------------------------------------------------------------------------
+
 \section{\class{wxDataOutputStream}}\label{wxdataoutputstream}
 
 This class provides functions that write data types in a
 \section{\class{wxDataOutputStream}}\label{wxdataoutputstream}
 
 This class provides functions that write data types in a
@@ -120,17 +115,9 @@ Writes the 32 bit integer {\it i32} to the stream.
 
 Writes the double {\it f} to the stream using the IEEE format.
 
 
 Writes the double {\it f} to the stream using the IEEE format.
 
-\membersection{wxDataOutputStream::WriteLine}
-
-\func{void}{wxDataOutputStream::WriteLine}{{\param const wxString\& }{string}}
-
-Writes {\it string} as a line. Depending on the operating system, it adds
-$\backslash$n or $\backslash$r$\backslash$n.
-
 \membersection{wxDataOutputStream::WriteString}
 
 \func{void}{wxDataOutputStream::WriteString}{{\param const wxString\& }{string}}
 
 Writes {\it string} to the stream. Actually, this method writes the size of
 the string before writing {\it string} itself.
 \membersection{wxDataOutputStream::WriteString}
 
 \func{void}{wxDataOutputStream::WriteString}{{\param const wxString\& }{string}}
 
 Writes {\it string} to the stream. Actually, this method writes the size of
 the string before writing {\it string} itself.
-
index 0b940c020f6cdd2ac322f5ea5b69c5e1ae27e6ee..d0888a8c450779e952cca915bc656d8a6d1b0332 100644 (file)
 
 <wx/stream.h>
 
 
 <wx/stream.h>
 
-\wxheading{See also}
-
-\helpref{wxStreamBuffer}{wxstreambuffer}
-
 % -----------
 % ctor & dtor
 % -----------
 % -----------
 % ctor & dtor
 % -----------
 
 Creates a dummy input stream.
 
 
 Creates a dummy input stream.
 
-\func{}{wxInputStream}{\param{wxStreamBuffer *}{sbuf}}
-
-Creates an input stream using the specified stream buffer \it{sbuf}. This
-stream buffer can point to another stream.
-
 \membersection{wxInputStream::\destruct{wxInputStream}}
 
 \func{}{\destruct{wxInputStream}}{\void}
 \membersection{wxInputStream::\destruct{wxInputStream}}
 
 \func{}{\destruct{wxInputStream}}{\void}
@@ -41,12 +32,6 @@ Destructor.
 
 Returns the first character in the input queue and removes it.
 
 
 Returns the first character in the input queue and removes it.
 
-\membersection{wxInputStream::InputStreamBuffer}
-
-\func{wxStreamBuffer*}{InputStreamBuffer}{\void}
-
-Returns the stream buffer associated with the input stream.
-
 \membersection{wxInputStream::LastRead}
 
 \constfunc{size\_t}{LastRead}{\void}
 \membersection{wxInputStream::LastRead}
 
 \constfunc{size\_t}{LastRead}{\void}
@@ -96,3 +81,22 @@ Changes the stream current position.
 
 Returns the current stream position.
 
 
 Returns the current stream position.
 
+\membersection{wxInputStream::Ungetch}\label{wxinputstream_ungetch}
+
+\func{size\_t}{Ungetch}{\param{const char*}{ buffer}, \param{size\_t}{ size}}
+
+This function is only useful in \it{read} mode. It is the manager of the "Write-Back"
+buffer. This buffer acts like a temporary buffer where datas which has to be
+read during the next read IO call are put. This is useful when you get a big
+block of data which you didn't want to read: you can replace them at the top
+of the input queue by this way.
+
+\wxheading{Return value}
+
+Returns the amount of bytes saved in the Write-Back buffer.
+
+\func{bool}{Ungetch}{\param{char }{c}}
+
+This function acts like the previous one except that it takes only one
+character: it is sometimes shorter to use than the generic function.
+
index 74378c89b6d4efc0873fad594f3e972f699fbcfa..af0d1c54d07515445f9c35ce658fd7e1c13c0ae4 100644 (file)
 
 <wx/stream.h>
 
 
 <wx/stream.h>
 
-\wxheading{See also}
-
-\helpref{wxStreamBuffer}{wxstreambuffer}
-
 % -----------
 % ctor & dtor
 % -----------
 % -----------
 % ctor & dtor
 % -----------
 
 Creates a dummy wxOutputStream object.
 
 
 Creates a dummy wxOutputStream object.
 
-\func{}{wxOutputStream}{\param{wxStreamBuffer*}{ sbuf}}
-
-Creates an input stream using the specified stream buffer \it{sbuf}. This
-stream buffer can point to another stream.
-
 \membersection{wxOutputStream::\destruct{wxOutputStream}}
 
 \func{}{\destruct{wxOutputStream}}{\void}
 
 Destructor.
 
 \membersection{wxOutputStream::\destruct{wxOutputStream}}
 
 \func{}{\destruct{wxOutputStream}}{\void}
 
 Destructor.
 
-\membersection{wxOutputStream::OutputStreamBuffer}
-
-\func{wxStreamBuffer *}{OutputStreamBuffer}{\void}
-
-Returns the stream buffer associated with the output stream.
-
 \membersection{wxOutputStream::LastWrite}
 
 \constfunc{size\_t}{LastWrite}{\void}
 \membersection{wxOutputStream::LastWrite}
 
 \constfunc{size\_t}{LastWrite}{\void}
index 20cf2e72d2764a2ac2b7564293fdbd7747ebe625..ac3eff3613dec19f8363c9fb33732f05507a5082 100644 (file)
@@ -132,25 +132,6 @@ are cached in a buffer before being sent in one block to the stream.
 
 See \helpref{Read}{wxstreambufferread}.
 
 
 See \helpref{Read}{wxstreambufferread}.
 
-\membersection{wxStreamBuffer::WriteBack}\label{wxstreambufferwriteback}
-
-\func{size\_t}{WriteBack}{\param{const char*}{ buffer}, \param{size\_t}{ size}}
-
-This function is only useful in \it{read} mode. It is the manager of the "Write-Back"
-buffer. This buffer acts like a temporary buffer where datas which has to be 
-read during the next read IO call are put. This is useful when you get a big
-block of data which you didn't want to read: you can replace them at the top
-of the input queue by this way.
-
-\wxheading{Return value}
-
-Returns the amount of bytes saved in the Write-Back buffer.
-
-\func{size\_t}{WriteBack}{\param{char }{c}}
-
-This function acts like the previous one except that it takes only one
-character: it is sometimes shorter to use than the generic function.
-
 \membersection{wxStreamBuffer::GetChar}
 
 \func{char}{GetChar}{\void}
 \membersection{wxStreamBuffer::GetChar}
 
 \func{char}{GetChar}{\void}
index b433e4f0134b9c5551d50563ac543519c398869b..08c4df058c2a38484e840c389def352ce0b4d426 100644 (file)
@@ -180,7 +180,7 @@ bool wxHTTP::Connect(wxSockAddress& addr, bool WXUNUSED(wait))
 bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
 {
   wxChar *tmp_buf;
 bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
 {
   wxChar *tmp_buf;
-  wxCharBuffer buf("");
+  wxChar buf[200];
   const wxWX2MBbuf pathbuf;
   wxString tmp_str;
 
   const wxWX2MBbuf pathbuf;
   wxString tmp_str;