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::IsOk
}\label{wxstreambaseisok
}
44 \constfunc{wxStreamError
}{IsOk
}{\void}
46 Returns TRUE if no error occured on the stream.
50 \helpref{LastError
}{wxstreambaselasterror
}
52 \membersection{wxStreamBase::LastError
}\label{wxstreambaselasterror
}
54 \constfunc{wxStreamError
}{LastError
}{\void}
56 This function returns the last error.
58 \begin{twocollist
}\itemsep=
0pt
59 \twocolitem{{\bf wxSTREAM
\_NO\_ERROR}}{No error occured.
}
60 \twocolitem{{\bf wxSTREAM
\_EOF}}{An End-Of-File occured.
}
61 \twocolitem{{\bf wxSTREAM
\_WRITE\_ERROR}}{A generic error occured on the last write call.
}
62 \twocolitem{{\bf wxSTREAM
\_READ\_ERROR}}{A generic error occured on the last read call.
}
65 \membersection{wxStreamBase::OnSysRead
}\label{wxstreambaseonsysread
}
67 \func{size
\_t}{OnSysRead
}{\param{void*
}{ buffer
},
\param{size
\_t}{ bufsize
}}
69 Internal function. It is called when the stream wants to read data of the
70 specified size. It should return the size that was actually read.
72 \membersection{wxStreamBase::OnSysSeek
}
74 \func{off
\_t}{OnSysSeek
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode
}}
76 Internal function. It is called when the stream needs to change the
79 \membersection{wxStreamBase::OnSysTell
}
81 \constfunc{off
\_t}{OnSysTell
}{\void}
83 Internal function. Is is called when the stream needs to know the
86 \membersection{wxStreamBase::OnSysWrite
}
88 \func{size
\_t}{OnSysWrite
}{\param{void *
}{buffer
},
\param{size
\_t}{ bufsize
}}
90 See
\helpref{OnSysRead
}{wxstreambaseonsysread
}.
92 \membersection{wxStreamBase::GetSize
}\label{wxstreambasegetsize
}
94 \constfunc{size
\_t}{GetSize
}{\void}
96 This function returns the size of the stream. For example, for a file it is the size of
101 There are streams which do not have size by definition, such as socket streams.
102 In that cases, GetSize returns an invalid size represented by