wxStreamBaseThis class is the base class of most stream related classes in wxWidgets. It must not be used directly. Derived from None Include files <wx/stream.h> See also Members
wxStreamBase::wxStreamBase
wxStreamBase::wxStreamBasewxStreamBase() Creates a dummy stream object. It doesn't do anything.
wxStreamBase::~wxStreamBase~wxStreamBase() Destructor.
wxStreamBase::GetLengthwxFileOffset GetLength() const Returns the length of the stream in bytes. If the length cannot be determined (this is always the case for socket streams for example), returns wxInvalidOffset. This function is new since wxWidgets version 2.5.4
wxStreamBase::GetLastErrorwxStreamError GetLastError() const This function returns the last error.
wxStreamBase::GetSizesize_t GetSize() const This function returns the size of the stream. For example, for a file it is the size of the file. Warning There are streams which do not have size by definition, such as socket streams. In that cases, GetSize returns 0 so you should always test its return value.
wxStreamBase::IsOkvirtual bool IsOk() const Returns true if no error occurred on the stream. See also
wxStreamBase::IsSeekablebool IsSeekable() const Returns true if the streams supports seeking to arbitrary offsets.
wxStreamBase::OnSysReadsize_t OnSysRead(void* buffer, size_t bufsize) Internal function. It is called when the stream wants to read data of the specified size. It should return the size that was actually read.
wxStreamBase::OnSysSeekoff_t OnSysSeek(off_t pos, wxSeekMode mode) Internal function. It is called when the stream needs to change the current position.
wxStreamBase::OnSysTelloff_t OnSysTell() const Internal function. Is is called when the stream needs to know the real position.
wxStreamBase::OnSysWritesize_t OnSysWrite(const void *buffer, size_t bufsize) See OnSysRead.
|