1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxStreamBase
}}\label{wxstreambase
}
6 This class is the base class of most stream related classes in wxWindows. It must
9 \wxheading{Derived from
}
13 \wxheading{Include files
}
19 \helpref{wxStreamBuffer
}{wxstreambuffer
}
21 % -----------------------------------------------------------------------------
23 % -----------------------------------------------------------------------------
24 \latexignore{\rtfignore{\wxheading{Members
}}}
30 \membersection{wxStreamBase::wxStreamBase
}
32 \func{}{wxStreamBase
}{\void}
34 Creates a dummy stream object. It doesn't do anything.
36 \membersection{wxStreamBase::
\destruct{wxStreamBase
}}
38 \func{}{\destruct{wxStreamBase
}}{\void}
42 \membersection{wxStreamBase::LastError
}\label{wxstreambaselasterror
}
44 \constfunc{wxStreamError
}{LastError
}{\void}
46 This function returns the last error.
48 \begin{twocollist
}\itemsep=
0pt
49 \twocolitem{{\bf wxSTREAM
\_NO\_ERROR}}{No error occured.
}
50 \twocolitem{{\bf wxSTREAM
\_EOF}}{An End-Of-File occured.
}
51 \twocolitem{{\bf wxSTREAM
\_WRITE\_ERROR}}{A generic error occured on the last write call.
}
52 \twocolitem{{\bf wxSTREAM
\_READ\_ERROR}}{A generic error occured on the last read call.
}
55 \membersection{wxStreamBase::OnSysRead
}\label{wxstreambaseonsysread
}
57 \func{size
\_t}{OnSysRead
}{\param{void*
}{ buffer
},
\param{size
\_t}{ bufsize
}}
59 Internal function. It is called when the stream wants to read data of the
60 specified size. It should return the size that was actually read.
62 \membersection{wxStreamBase::OnSysSeek
}
64 \func{off
\_t}{OnSysSeek
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode
}}
66 Internal function. It is called when the stream needs to change the
69 \membersection{wxStreamBase::OnSysTell
}
71 \constfunc{off
\_t}{OnSysTell
}{\void}
73 Internal function. Is is called when the stream needs to know the
76 \membersection{wxStreamBase::OnSysWrite
}
78 \func{size
\_t}{OnSysWrite
}{\param{void *
}{buffer
},
\param{size
\_t}{ bufsize
}}
80 See
\helpref{OnSysRead
}{wxstreambaseonsysread
}.
82 \membersection{wxStreamBase::GetSize
}\label{wxstreambasegetsize
}
84 \constfunc{size
\_t}{GetSize
}{\void}
86 This function returns the size of the stream. For example, for a file it is the size of
91 There are streams which do not have size by definition, such as socket streams.
92 In that cases, GetSize returns an invalid size represented by