28 #ifndef CASA_STREAMIO_H 29 #define CASA_STREAMIO_H 31 #include <casacore/casa/aips.h> 32 #include <casacore/casa/IO/ByteIO.h> 77 virtual void write(
Int64 size,
const void* buf);
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 Bool isSeekable() const
Is the stream seekable? This function always returns False.
virtual Int64 doSeek(Int64 offset, ByteIO::SeekOption)
Reset the position pointer to the given value.
SeekOption
Define the possible seek options.
Class for IO on connection oriented socket.
StreamIO & operator=(const StreamIO &other)
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.
virtual Bool isReadable() const
Is the stream readable? This function always returns True.
this file contains all the compiler specific defines
virtual Bool isWritable() const
Is the stream writable? This function always returns True.