]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/strmbase.tex
Cured some small doc typos; some WIN16 fixes; transferred DLL WinMain to
[wxWidgets.git] / docs / latex / wx / strmbase.tex
CommitLineData
e2a6f233
JS
1% -----------------------------------------------------------------------------
2% wxStreamBase
3% -----------------------------------------------------------------------------
4\section{\class{wxStreamBase}}\label{wxstreambase}
5
6\wxheading{Derived from}
7
8None
9
10\wxheading{See also}
11
12\helpref{wxStreamBuffer}{wxstreambuffer}
13
14% -----------------------------------------------------------------------------
15% Members
16% -----------------------------------------------------------------------------
17\latexignore{\rtfignore{\wxheading{Members}}}
18
19% -----------
20% ctor & dtor
21% -----------
22
23\membersection{wxStreamBase::wxStreamBase}
24
25\func{}{wxStreamBase}{\void}
26
da3aea64 27Creates a dummy stream object. It doesn't do anything.
e2a6f233
JS
28
29\membersection{wxStreamBase::\destruct{wxStreamBase}}
30
31\func{}{\destruct{wxStreamBase}}{\void}
32
33Destructor.
34
35\membersection{wxStreamBase::LastError}\label{wxstreambaselasterror}
36
37\constfunc{wxStreamError}{LastError}{\void}
38
39This function returns the last error.
07b73270
GL
40\twocolwidtha{5cm}
41\begin{twocollist}\itemsep=0pt
42\twocolitem{{\bf wxStream_NOERROR}}{No error occured.}
43\twocolitem{{\bf wxStream_EOF}}{An End-Of-File occured.}
44\twocolitem{{\bf wxStream_WRITE_ERR}}{A generic error occured on the last write call.}
750b78ba 45\twocolitem{{\bf wxStream_READ_ERR}}{A generic error occured on the last read call.}
07b73270 46\end{twocollist}
e2a6f233
JS
47
48\membersection{wxStreamBase::StreamSize}
49\constfunc{size_t}{StreamSize}{\void}
50
51This function returns the size of the stream. For example, for a file it is the size of
da3aea64
GL
52the file).
53
54\wxheading{Warning}
55
56There are streams which do not have size by definition, such as socket streams.
57In that cases, StreamSize returns an invalid size represented by
58\begin{verbatim}
59~(size_t)0
60\end{verbatim}
e2a6f233
JS
61
62\membersection{wxStreamBase::OnSysRead}\label{wxstreambaseonsysread}
63
64\func{size_t}{OnSysRead}{\param{void*}{ buffer}, \param{size_t}{ bufsize}}
65
66Internal function. It is called when the stream buffer needs a buffer of the
67specified size. It should return the size that was actually read.
68
69\membersection{wxStreamBase::OnSysWrite}
70
71\func{size_t}{OnSysWrite}{\param{void *}{buffer}, \param{size_t}{ bufsize}}
72
73See \helpref{OnSysRead}{wxstreambaseonsysread}.
74
75\membersection{wxStreamBase::OnSysSeek}
76
77\func{off_t}{OnSysSeek}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode}}
78
79Internal function. It is called when the stream buffer needs to change the
80current position in the stream. See \helpref{wxStreamBuffer::Seek}{wxstreambufferseek}
81
82\membersection{wxStreamBase::OnSysTell}
83
84\constfunc{off_t}{OnSysTell}{\void}
85
86Internal function. Is is called when the stream buffer needs to know the
7f42cff1 87real position in the stream.
e2a6f233 88