Base class for output (write) streams with minimal implementation. More...
#include <datastream.h>
Inheritance diagram for Mezzanine::Resource::OStream:
Collaboration diagram for Mezzanine::Resource::OStream:Public Member Functions | |
| OStream (std::streambuf *Buf) | |
| Class constructor. More... | |
| virtual | ~OStream () |
| Class destructor. | |
| virtual Boole | Bad () const |
| Gets whether or not a critical error was detected in a previous operation in the stream. More... | |
| virtual void | ClearErrors () |
| Clears any stored error state on the stream. More... | |
| virtual Boole | EoF () const |
| Gets whether or not the current position is at the end of the stream. More... | |
| virtual Boole | Fail () const |
| Gets whether or not an otherwise silent and recoverable error was detected in a previous operation in the stream. More... | |
| virtual StreamPos | GetWritePosition () |
| Gets the current write position in this stream. More... | |
| virtual Boole | IsValid () const |
| Gets whether or not this stream is intact and ready for operations. More... | |
| virtual void | SetWritePosition (StreamPos Position) |
| Sets the position of the write cursor explicitly. More... | |
| virtual void | SetWritePosition (StreamOff Offset, SeekOrigin Origin) |
| Sets the position of the write cursor. More... | |
| virtual size_t | Write (const void *Buffer, StreamSize Size) |
| Writes data to the stream. More... | |
Public Member Functions inherited from Mezzanine::Resource::iOutStream | |
| iOutStream () | |
| Class constructor. | |
| virtual | ~iOutStream () |
| Class destructor. | |
Public Member Functions inherited from Mezzanine::Resource::iStreamBase | |
| iStreamBase () | |
| Class constructor. | |
| virtual | ~iStreamBase () |
| Class destructor. | |
| virtual StreamSize | GetSize () const =0 |
| Gets the size of the stream. More... | |
Base class for output (write) streams with minimal implementation.
Definition at line 222 of file datastream.h.
| Mezzanine::Resource::OStream::OStream | ( | std::streambuf * | Buf | ) |
Class constructor.
| Buf | A pointer to the buffer that will be streamed. |
Definition at line 106 of file datastream.cpp.
|
virtual |
Gets whether or not a critical error was detected in a previous operation in the stream.
Implements Mezzanine::Resource::iStreamBase.
Definition at line 119 of file datastream.cpp.
|
virtual |
Clears any stored error state on the stream.
Implements Mezzanine::Resource::iStreamBase.
Definition at line 128 of file datastream.cpp.
|
virtual |
Gets whether or not the current position is at the end of the stream.
Implements Mezzanine::Resource::iStreamBase.
Definition at line 116 of file datastream.cpp.
|
virtual |
Gets whether or not an otherwise silent and recoverable error was detected in a previous operation in the stream.
Implements Mezzanine::Resource::iStreamBase.
Definition at line 122 of file datastream.cpp.
|
virtual |
Gets the current write position in this stream.
Implements Mezzanine::Resource::iOutStream.
Definition at line 146 of file datastream.cpp.
|
virtual |
Gets whether or not this stream is intact and ready for operations.
Implements Mezzanine::Resource::iStreamBase.
Definition at line 125 of file datastream.cpp.
|
virtual |
Sets the position of the write cursor explicitly.
| Position | The position to be set. |
Implements Mezzanine::Resource::iOutStream.
Definition at line 140 of file datastream.cpp.
|
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. |
Implements Mezzanine::Resource::iOutStream.
Definition at line 143 of file datastream.cpp.
|
virtual |
Writes data to the stream.
| Buffer | The memory buffer to write to this stream. |
| Size | The size of the buffer being passed in. |
Implements Mezzanine::Resource::iOutStream.
Definition at line 134 of file datastream.cpp.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.