Abstract base class for output buffer for a blob.
More...
#include <BlobOBuffer.h>
Abstract base class for output buffer for a blob.
BlobOBuffer is the abstract base class for the sink of a BlobOStream object. In this way the destination of a BlobOStream can be chosen as needed. Currently three sink types are possible:
-
BlobOBufStream uses an ostream as the sink. It is mainly meant to write blobs into a file, socket, etc.
-
BlobOBufVector<T> uses a vector<T> (where T is char or uchar) as the sink. It is mainly meant for creating blobs to be stored using the classes in the LCS Persistent Object Layer.
-
BlobOBufChar uses a plain C-array as the sink. It serves as a helper class for BlobOBufVector, but can also be used in itself.
◆ BlobOBuffer()
| dp3::blob::BlobOBuffer::BlobOBuffer |
( |
| ) |
|
|
inline |
◆ ~BlobOBuffer()
| virtual dp3::blob::BlobOBuffer::~BlobOBuffer |
( |
| ) |
|
|
inlinevirtual |
◆ put()
| virtual uint64_t dp3::blob::BlobOBuffer::put |
( |
const void * |
buffer, |
|
|
uint64_t |
nbytes |
|
) |
| |
|
pure virtual |
◆ setPos()
| virtual int64_t dp3::blob::BlobOBuffer::setPos |
( |
int64_t |
pos | ) |
|
|
pure virtual |
Set the position in the stream. It returns the new position which is -1 if the stream is not seekable.
Implemented in dp3::blob::BlobOBufStream.
◆ tellPos()
| virtual int64_t dp3::blob::BlobOBuffer::tellPos |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: