1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxStreamBase
}}\label{wxstreambase
}
6 \wxheading{Derived from
}
12 \helpref{wxStreamBuffer
}{wxstreambuffer
}
14 % -----------------------------------------------------------------------------
16 % -----------------------------------------------------------------------------
17 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxStreamBase::wxStreamBase
}
25 \func{}{wxStreamBase
}{\void}
27 Creates a dummy stream object. It doesn't do anything.
29 \membersection{wxStreamBase::
\destruct{wxStreamBase
}}
31 \func{}{\destruct{wxStreamBase
}}{\void}
35 \membersection{wxStreamBase::LastError
}\label{wxstreambaselasterror
}
37 \constfunc{wxStreamError
}{LastError
}{\void}
39 This function returns the last error.
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.
}
45 \twocolitem{{\bf wxStream_READ_ERR
}}{A generic error occured on the last read call.
}
48 \membersection{wxStreamBase::StreamSize
}
49 \constfunc{size_t
}{StreamSize
}{\void}
51 This function returns the size of the stream. For example, for a file it is the size of
56 There are streams which do not have size by definition, such as socket streams.
57 In that cases, StreamSize returns an invalid size represented by
62 \membersection{wxStreamBase::OnSysRead
}\label{wxstreambaseonsysread
}
64 \func{size_t
}{OnSysRead
}{\param{void*
}{ buffer
},
\param{size_t
}{ bufsize
}}
66 Internal function. It is called when the stream buffer needs a buffer of the
67 specified size. It should return the size that was actually read.
69 \membersection{wxStreamBase::OnSysWrite
}
71 \func{size_t
}{OnSysWrite
}{\param{void *
}{buffer
},
\param{size_t
}{ bufsize
}}
73 See
\helpref{OnSysRead
}{wxstreambaseonsysread
}.
75 \membersection{wxStreamBase::OnSysSeek
}
77 \func{off_t
}{OnSysSeek
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}{ mode
}}
79 Internal function. It is called when the stream buffer needs to change the
80 current position in the stream. See
\helpref{wxStreamBuffer::Seek
}{wxstreambufferseek
}
82 \membersection{wxStreamBase::OnSysTell
}
84 \constfunc{off_t
}{OnSysTell
}{\void}
86 Internal function. Is is called when the stream buffer needs to know the
87 real position in the stream.