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

Input buffer for a blob using an istream. More...

#include <BlobIBufStream.h>

Inheritance diagram for dp3::blob::BlobIBufStream:
dp3::blob::BlobIBuffer

Public Member Functions

 BlobIBufStream (std::istream &)
 Construct it with the underlying istream object. More...
 
virtual ~BlobIBufStream ()
 Destructor. More...
 
virtual uint64_t get (void *buffer, uint64_t nbytes)
 Get 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::BlobIBuffer
 BlobIBuffer ()
 Constructor. More...
 
virtual ~BlobIBuffer ()
 Destructor. More...
 

Detailed Description

Input buffer for a blob using an istream.

This class is the BlobIBuffer that makes use of an istream object. The istream can be any type (ifstream, istringstream, ...). It can, for instance, be used to read from a file or a socket.

Constructor & Destructor Documentation

◆ BlobIBufStream()

dp3::blob::BlobIBufStream::BlobIBufStream ( std::istream &  )
explicit

Construct it with the underlying istream object.

◆ ~BlobIBufStream()

virtual dp3::blob::BlobIBufStream::~BlobIBufStream ( )
virtual

Destructor.

Member Function Documentation

◆ get()

virtual uint64_t dp3::blob::BlobIBufStream::get ( void *  buffer,
uint64_t  nbytes 
)
virtual

Get the requested nr of bytes.

Implements dp3::blob::BlobIBuffer.

◆ setPos()

virtual int64_t dp3::blob::BlobIBufStream::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::BlobIBuffer.

◆ tellPos()

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

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

Implements dp3::blob::BlobIBuffer.


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