Go to the documentation of this file.
28 #ifndef CASA_STREAMIO_H
29 #define CASA_STREAMIO_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/IO/ByteIO.h>
StreamIO & operator=(const StreamIO &other)
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 void write(Int64 size, const void *buf)
Write the specified number of bytes.
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.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Class for IO on connection oriented socket.
virtual Int64 length()
Get the length of the stream.
virtual Bool isWritable() const
Is the stream writable? This function always returns True.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
virtual Bool isSeekable() const
Is the stream seekable? This function always returns False.
Abstract base class for IO on a byte stream.
virtual Int64 read(Int64 size, void *buf, Bool throwException=True)
Read size bytes from the tape.
virtual Bool isReadable() const
Is the stream readable? This function always returns True.
SeekOption
Define the possible seek options.