28 #ifndef CASA_STREAMIO_H
29 #define CASA_STREAMIO_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/IO/ByteIO.h>
SeekOption
Define the possible seek options.
virtual ~StreamIO()
The destructor closes the file.
virtual Bool isReadable() const
Is the stream readable? This function always returns True.
virtual Bool isSeekable() const
Is the stream seekable? This function always returns False.
StreamIO(const String &hostname, uShort portNumber)
Construct a stream that is attached to the specified host on the specified portnumber.
virtual Int64 doSeek(Int64 offset, ByteIO::SeekOption)
Reset the position pointer to the given value.
StreamIO(const StreamIO &other)
The following functions are made private so that the compiler does not generate default ones.
virtual Int64 length()
Get the length of the stream.
virtual Bool isWritable() const
Is the stream writable? This function always returns True.
virtual Int64 read(Int64 size, void *buf, Bool throwException=True)
Read size bytes from the tape.
virtual void write(Int64 size, const void *buf)
Write the specified number of bytes.
StreamIO & operator=(const StreamIO &other)
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.