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

A Blob buffer for Aips++ ByteIO. More...

#include <BlobAipsIO.h>

Inheritance diagram for dp3::blob::BlobAipsIO:

Public Member Functions

virtual ~BlobAipsIO ()
 
virtual bool isReadable () const
 Is the Blob stream readable? More...
 
virtual bool isSeekable () const
 Is the Blob stream seekable? More...
 
virtual bool isWritable () const
 Is the Blob stream writable? More...
 
virtual casacore::Int64 length ()
 
virtual casacore::Int64 read (casacore::Int64 size, void *buf, bool throwException)
 
virtual casacore::Int read (casacore::uInt size, void *buf, bool throwException)
 
virtual void write (casacore::Int64 size, const void *buf)
 
virtual void write (casacore::uInt size, const void *buf)
 
 BlobAipsIO (BlobOStream &)
 
 BlobAipsIO (BlobIStream &)
 

Detailed Description

A Blob buffer for Aips++ ByteIO.

This class makes it possible to use the AIPS++ AipsIO class on top of a Blob buffer. In this way it is possible to write an AIPS++ LSQFit object directly into a Blob buffer. Note that it is even possible to mix AipsIO and Blob puts; the same is true for gets. Of course, the order of reading must be the same as the order of writing.

Constructor & Destructor Documentation

◆ BlobAipsIO() [1/2]

dp3::blob::BlobAipsIO::BlobAipsIO ( BlobOStream )
explicit

Construct from a Blob buffer.

◆ BlobAipsIO() [2/2]

dp3::blob::BlobAipsIO::BlobAipsIO ( BlobIStream )
explicit

◆ ~BlobAipsIO()

virtual dp3::blob::BlobAipsIO::~BlobAipsIO ( )
virtual

Member Function Documentation

◆ isReadable()

virtual bool dp3::blob::BlobAipsIO::isReadable ( ) const
virtual

Is the Blob stream readable?

◆ isSeekable()

virtual bool dp3::blob::BlobAipsIO::isSeekable ( ) const
virtual

Is the Blob stream seekable?

◆ isWritable()

virtual bool dp3::blob::BlobAipsIO::isWritable ( ) const
virtual

Is the Blob stream writable?

◆ length()

virtual casacore::Int64 dp3::blob::BlobAipsIO::length ( )
virtual

Get the length of the Blob stream. Returns 0 if the stream is not seekable.

◆ read() [1/2]

virtual casacore::Int64 dp3::blob::BlobAipsIO::read ( casacore::Int64  size,
void *  buf,
bool  throwException 
)
virtual

Read size bytes from the Blob stream. Returns the number of bytes actually read.

Exceptions
AipsErrorif the requested number of bytes could not be read, unless throwException is set to False.

◆ read() [2/2]

virtual casacore::Int dp3::blob::BlobAipsIO::read ( casacore::uInt  size,
void *  buf,
bool  throwException 
)
virtual

◆ write() [1/2]

virtual void dp3::blob::BlobAipsIO::write ( casacore::Int64  size,
const void *  buf 
)
virtual

Write the number of bytes to the Blob stream.

Exceptions
Anexception if the stream is not writable. The 2nd write and read function are defined for the read/write signatures in older casacore versions (pre v2.0).

◆ write() [2/2]

virtual void dp3::blob::BlobAipsIO::write ( casacore::uInt  size,
const void *  buf 
)
virtual

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