Go to the documentation of this file.
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>
virtual void write(Int64 size, const void *buffer)
Write a block at the given offset.
virtual String fileName() const
Get the file name of the file attached.
virtual ~MFFileIO()
The destructor flushes and closes the file.
virtual Bool isWritable() const
Is the file writable?
OpenOption
Define the possible ByteIO open options.
virtual Bool isReadable() const
The file is always readable.
void remove()
Remove the file from the MultiFileBase object.
MFFileIO(MultiFileBase &, const String &name, ByteIO::OpenOption=ByteIO::Old)
Open or create a virtual file with the given name.
virtual void flush()
Flush the file by writing all dirty data and all header info.
virtual Int64 length()
Get the length of the file.
virtual Bool isSeekable() const
The file is always seekable.
Class for IO on a virtual file in a MultiFileBase
virtual void reopenRW()
Reopen the file (and possibly underlying MultiFileBase) for read/write access.
Abstract base class to combine multiple files in a single one.
this file contains all the compiler specific defines
virtual Int64 doSeek(Int64 offset, ByteIO::SeekOption)
Reset the position pointer to the given value.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
virtual void fsync()
Fsync the file (i.e.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
Abstract base class for IO on a byte stream.
SeekOption
Define the possible seek options.
virtual Int64 read(Int64 size, void *buf, Bool throwException=True)
Read size bytes from the byte stream.