|
DP3
|
Output buffer for a blob using an ostream. More...
#include <BlobOBufStream.h>
Public Member Functions | |
| BlobOBufStream (std::ostream &) | |
| Construct it with the underlying ostream object. More... | |
| virtual | ~BlobOBufStream () |
| Destructor. More... | |
| virtual uint64_t | put (const void *buffer, uint64_t nbytes) |
| Put the requested nr of bytes. More... | |
| virtual int64_t | setPos (int64_t pos) |
| virtual int64_t | tellPos () const |
Public Member Functions inherited from dp3::blob::BlobOBuffer | |
| BlobOBuffer () | |
| virtual | ~BlobOBuffer () |
Output buffer for a blob using an ostream.
This class is the BlobOBuffer that makes use of an ostream object. The ostream can be any type (ofstream, ostringstream, ...)
|
explicit |
Construct it with the underlying ostream object.
|
virtual |
Destructor.
|
virtual |
Put the requested nr of bytes.
Implements dp3::blob::BlobOBuffer.
|
virtual |
Set the position in the stream. It returns the new position which is -1 if the stream is not seekable.
Implements dp3::blob::BlobOBuffer.
|
virtual |
Get the position in the stream. -1 is returned if the stream is not seekable.
Implements dp3::blob::BlobOBuffer.