28 #ifndef CASA_STREAMIO_H
29 #define CASA_STREAMIO_H
virtual Int64 read(Int64 size, void *buf, Bool throwException=True)
Read size bytes from the tape.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
virtual Int64 doSeek(Int64 offset, ByteIO::SeekOption)
Reset the position pointer to the given value.
virtual Bool isSeekable() const
Is the stream seekable? This function always returns False.
SeekOption
Define the possible seek options.
Class for IO on connection oriented socket.
virtual Bool isWritable() const
Is the stream writable? This function always returns True.
StreamIO & operator=(const StreamIO &other)
virtual Bool isReadable() const
Is the stream readable? This function always returns True.
Abstract base class for IO on a byte stream.
virtual Int64 length()
Get the length of the stream.
bool Bool
Define the standard types used by Casacore.
StreamIO(const String &hostname, uShort portNumber)
Construct a stream that is attached to the specified host on the specified portnumber.
virtual ~StreamIO()
The destructor closes the file.
virtual void write(Int64 size, const void *buf)
Write the specified number of bytes.
String: the storage and methods of handling collections of characters.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.