DP3
Public Member Functions | List of all members
dp3::blob::BlobOBufStream Class Reference

Output buffer for a blob using an ostream. More...

#include <BlobOBufStream.h>

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

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 ()
 

Detailed Description

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, ...)

Constructor & Destructor Documentation

◆ BlobOBufStream()

dp3::blob::BlobOBufStream::BlobOBufStream ( std::ostream &  )
explicit

Construct it with the underlying ostream object.

◆ ~BlobOBufStream()

virtual dp3::blob::BlobOBufStream::~BlobOBufStream ( )
virtual

Destructor.

Member Function Documentation

◆ put()

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

Put the requested nr of bytes.

Implements dp3::blob::BlobOBuffer.

◆ setPos()

virtual int64_t dp3::blob::BlobOBufStream::setPos ( int64_t  pos)
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.

◆ tellPos()

virtual int64_t dp3::blob::BlobOBufStream::tellPos ( ) const
virtual

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

Implements dp3::blob::BlobOBuffer.


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