28 #ifndef CASA_MFFILEIO_H
29 #define CASA_MFFILEIO_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/IO/ByteIO.h>
34 #include <casacore/casa/IO/MultiFileBase.h>
SeekOption
Define the possible seek options.
OpenOption
Define the possible ByteIO open options.
virtual Int64 doSeek(Int64 offset, ByteIO::SeekOption)
Reset the position pointer to the given value.
virtual void fsync()
Fsync the file (i.e.
void remove()
Remove the file from the MultiFileBase object.
virtual Int64 length()
Get the length of the file.
virtual Bool isReadable() const
The file is always readable.
virtual ~MFFileIO()
The destructor flushes and closes the file.
virtual void reopenRW()
Reopen the file (and possibly underlying MultiFileBase) for read/write access.
virtual String fileName() const
Get the file name of the file attached.
virtual void flush()
Flush the file by writing all dirty data and all header info.
MFFileIO(MultiFileBase &, const String &name, ByteIO::OpenOption=ByteIO::Old)
Open or create a virtual file with the given name.
virtual Bool isWritable() const
Is the file writable?
virtual void write(Int64 size, const void *buffer)
Write a block at the given offset.
virtual Bool isSeekable() const
The file is always seekable.
virtual Int64 read(Int64 size, void *buf, Bool throwException=True)
Read size bytes from the byte stream.
Abstract base class to combine multiple files in a single one.
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.