Go to the documentation of this file.
28 #ifndef CASA_HDF5FILE_H
29 #define CASA_HDF5FILE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/HDF5/HDF5Object.h>
34 #include <casacore/casa/BasicSL/String.h>
35 #include <casacore/casa/IO/ByteIO.h>
HDF5File & operator=(const HDF5File &that)
Assignment cannot be used.
OpenOption
Define the possible ByteIO open options.
HDF5File(const HDF5File &that)
Copy constructor cannot be used.
@ Update
read/write; file must exist.
HDF5File(const String &name, ByteIO::OpenOption=ByteIO::Old)
Create an HDF5 file object with the given file name (possible tilde or environment variables in it wi...
static Bool isHDF5(const String &name)
Test if the file with the given name is an HDF5 file.
hid_t getHid() const
Get the hid.
~HDF5File()
The destructor closes the file and deletes it when it was opened using ByteIO::Scratch or ByteIO::Del...
virtual void close()
Close the file (temporarily).
Bool isWritable() const
Is the file writable?
ByteIO::OpenOption itsOption
this file contains all the compiler specific defines
Bool isClosed() const
Is the file temporarily closed?
void reopenRW()
Reopen the underlying file for read/write access.
Bool isOpenedForDelete() const
Is the file opened for delete?
void doOpen()
Open or create the file.
void flush()
Flush the data to disk.
void reopen()
Reopen the file if closed (which may change the HID).
String: the storage and methods of handling collections of characters.
void setChunkCacheSize(size_t nbytes)
bool Bool
Define the standard types used by Casacore.
size_t getChunkCacheSize() const
Get or set the chunk cache size (in bytes).