1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxStreamBase
}}\label{wxstreambase
}
6 \wxheading{Derived from
}
10 \wxheading{Include files
}
16 \helpref{wxStreamBuffer
}{wxstreambuffer
}
18 % -----------------------------------------------------------------------------
20 % -----------------------------------------------------------------------------
21 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxStreamBase::wxStreamBase
}
29 \func{}{wxStreamBase
}{\void}
31 Creates a dummy stream object. It doesn't do anything.
33 \membersection{wxStreamBase::
\destruct{wxStreamBase
}}
35 \func{}{\destruct{wxStreamBase
}}{\void}
39 \membersection{wxStreamBase::LastError
}\label{wxstreambaselasterror
}
41 \constfunc{wxStreamError
}{LastError
}{\void}
43 This function returns the last error.
45 \begin{twocollist
}\itemsep=
0pt
46 \twocolitem{{\bf wxStream
\_NOERROR}}{No error occured.
}
47 \twocolitem{{\bf wxStream
\_EOF}}{An End-Of-File occured.
}
48 \twocolitem{{\bf wxStream
\_WRITE\_ERR}}{A generic error occured on the last write call.
}
49 \twocolitem{{\bf wxStream
\_READ\_ERR}}{A generic error occured on the last read call.
}
52 \membersection{wxStreamBase::OnSysRead
}\label{wxstreambaseonsysread
}
54 \func{size
\_t}{OnSysRead
}{\param{void*
}{ buffer
},
\param{size
\_t}{ bufsize
}}
56 Internal function. It is called when the stream buffer needs a buffer of the
57 specified size. It should return the size that was actually read.
59 \membersection{wxStreamBase::OnSysSeek
}
61 \func{off
\_t}{OnSysSeek
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode
}}
63 Internal function. It is called when the stream buffer needs to change the
64 current position in the stream. See
\helpref{wxStreamBuffer::Seek
}{wxstreambufferseek
}
66 \membersection{wxStreamBase::OnSysTell
}
68 \constfunc{off
\_t}{OnSysTell
}{\void}
70 Internal function. Is is called when the stream buffer needs to know the
71 real position in the stream.
73 \membersection{wxStreamBase::OnSysWrite
}
75 \func{size
\_t}{OnSysWrite
}{\param{void *
}{buffer
},
\param{size
\_t}{ bufsize
}}
77 See
\helpref{OnSysRead
}{wxstreambaseonsysread
}.
79 \membersection{wxStreamBase::GetSize
}\label{wxstreambasegetsize
}
81 \constfunc{size
\_t}{GetSize
}{\void}
83 This function returns the size of the stream. For example, for a file it is the size of
88 There are streams which do not have size by definition, such as socket streams.
89 In that cases, GetSize returns an invalid size represented by