|
DP3
|
A Blob buffer for Aips++ ByteIO. More...
#include <BlobAipsIO.h>
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 &) | |
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.
|
explicit |
Construct from a Blob buffer.
|
explicit |
|
virtual |
|
virtual |
Is the Blob stream readable?
|
virtual |
Is the Blob stream seekable?
|
virtual |
Is the Blob stream writable?
|
virtual |
Get the length of the Blob stream. Returns 0 if the stream is not seekable.
|
virtual |
Read size bytes from the Blob stream. Returns the number of bytes actually read.
| AipsError | if the requested number of bytes could not be read, unless throwException is set to False. |
|
virtual |
|
virtual |
Write the number of bytes to the Blob stream.
| An | exception 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). |
|
virtual |