Interface class for output (write) streams. More...
#include <datastream.h>
Public Member Functions | |
iOutStream () | |
Class constructor. | |
virtual | ~iOutStream () |
Class destructor. | |
virtual StreamPos | GetWritePosition ()=0 |
Gets the current write position in this stream. More... | |
virtual void | SetWritePosition (StreamPos Position)=0 |
Sets the position of the write cursor explicitly. More... | |
virtual void | SetWritePosition (StreamOff Offset, SeekOrigin Origin)=0 |
Sets the position of the write cursor. More... | |
virtual size_t | Write (const void *Buffer, StreamSize Size)=0 |
Writes data to the stream. More... | |
Public Member Functions inherited from Mezzanine::Resource::iStreamBase | |
iStreamBase () | |
Class constructor. | |
virtual | ~iStreamBase () |
Class destructor. | |
virtual Boole | Bad () const =0 |
Gets whether or not a critical error was detected in a previous operation in the stream. More... | |
virtual void | ClearErrors ()=0 |
Clears any stored error state on the stream. More... | |
virtual Boole | EoF () const =0 |
Gets whether or not the current position is at the end of the stream. More... | |
virtual Boole | Fail () const =0 |
Gets whether or not an otherwise silent and recoverable error was detected in a previous operation in the stream. More... | |
virtual StreamSize | GetSize () const =0 |
Gets the size of the stream. More... | |
virtual Boole | IsValid () const =0 |
Gets whether or not this stream is intact and ready for operations. More... | |
Interface class for output (write) streams.
Definition at line 151 of file datastream.h.
|
pure virtual |
Gets the current write position in this stream.
Implemented in Mezzanine::Resource::IOStream, and Mezzanine::Resource::OStream.
|
pure virtual |
Sets the position of the write cursor explicitly.
Position | The position to be set. |
Implemented in Mezzanine::Resource::IOStream, and Mezzanine::Resource::OStream.
|
pure virtual |
Sets the position of the write cursor.
Offset | The number of bytes to move the write cursor back(if negative) or forward(if positive). |
Origin | The starting point to be considered for the offset. |
Implemented in Mezzanine::Resource::IOStream, and Mezzanine::Resource::OStream.
|
pure virtual |
Writes data to the stream.
Buffer | The memory buffer to write to this stream. |
Size | The size of the buffer being passed in. |
Implemented in Mezzanine::Resource::IOStream, and Mezzanine::Resource::OStream.