DP3
Public Member Functions | List of all members
dp3::blob::BlobOBuffer Class Referenceabstract

Abstract base class for output buffer for a blob. More...

#include <BlobOBuffer.h>

Inheritance diagram for dp3::blob::BlobOBuffer:
dp3::blob::BlobOBufStream

Public Member Functions

 BlobOBuffer ()
 
virtual ~BlobOBuffer ()
 
virtual uint64_t put (const void *buffer, uint64_t nbytes)=0
 Put the requested nr of bytes. More...
 
virtual int64_t setPos (int64_t pos)=0
 
virtual int64_t tellPos () const =0
 

Detailed Description

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:

Constructor & Destructor Documentation

◆ BlobOBuffer()

dp3::blob::BlobOBuffer::BlobOBuffer ( )
inline

◆ ~BlobOBuffer()

virtual dp3::blob::BlobOBuffer::~BlobOBuffer ( )
inlinevirtual

Member Function Documentation

◆ put()

virtual uint64_t dp3::blob::BlobOBuffer::put ( const void *  buffer,
uint64_t  nbytes 
)
pure virtual

Put the requested nr of bytes.

Implemented in dp3::blob::BlobOBufStream.

◆ 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

Get the position in the stream. -1 is returned if the stream is not seekable.

Implemented in dp3::blob::BlobOBufStream.


The documentation for this class was generated from the following file: