]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/strmbase.tex
* Some more on streams.
[wxWidgets.git] / docs / latex / wx / strmbase.tex
1 % -----------------------------------------------------------------------------
2 % wxStreamBase
3 % -----------------------------------------------------------------------------
4 \section{\class{wxStreamBase}}\label{wxstreambase}
5
6 \wxheading{Derived from}
7
8 None
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
27 Creates a dummy stream object.
28
29 \membersection{wxStreamBase::\destruct{wxStreamBase}}
30
31 \func{}{\destruct{wxStreamBase}}{\void}
32
33 Destructor.
34
35 \membersection{wxStreamBase::LastError}\label{wxstreambaselasterror}
36
37 \constfunc{wxStreamError}{LastError}{\void}
38
39 This function returns the last error.
40 % It is of the form:
41 % TODO
42
43 \membersection{wxStreamBase::StreamSize}
44 \constfunc{size_t}{StreamSize}{\void}
45
46 This function returns the size of the stream. For example, for a file it is the size of
47 the file). Warning! There are streams which do not have size by definition, such as a socket.
48
49 \membersection{wxStreamBase::OnSysRead}\label{wxstreambaseonsysread}
50
51 \func{size_t}{OnSysRead}{\param{void*}{ buffer}, \param{size_t}{ bufsize}}
52
53 Internal function. It is called when the stream buffer needs a buffer of the
54 specified size. It should return the size that was actually read.
55
56 \membersection{wxStreamBase::OnSysWrite}
57
58 \func{size_t}{OnSysWrite}{\param{void *}{buffer}, \param{size_t}{ bufsize}}
59
60 See \helpref{OnSysRead}{wxstreambaseonsysread}.
61
62 \membersection{wxStreamBase::OnSysSeek}
63
64 \func{off_t}{OnSysSeek}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode}}
65
66 Internal function. It is called when the stream buffer needs to change the
67 current position in the stream. See \helpref{wxStreamBuffer::Seek}{wxstreambufferseek}
68
69 \membersection{wxStreamBase::OnSysTell}
70
71 \constfunc{off_t}{OnSysTell}{\void}
72
73 Internal function. Is is called when the stream buffer needs to know the
74 current position in the stream.
75