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>
OpenOption
Define the possible ByteIO open options.
@ Update
read/write; file must exist.
static Bool isHDF5(const String &name)
Test if the file with the given name is an HDF5 file.
void setChunkCacheSize(size_t nbytes)
void reopen()
Reopen the file if closed (which may change the HID).
Bool isOpenedForDelete() const
Is the file opened for delete?
Bool isWritable() const
Is the file writable?
void doOpen()
Open or create the file.
ByteIO::OpenOption itsOption
HDF5File & operator=(const HDF5File &that)
Assignment cannot be used.
virtual void close()
Close the file (temporarily).
void flush()
Flush the data to disk.
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...
size_t getChunkCacheSize() const
Get or set the chunk cache size (in bytes).
void reopenRW()
Reopen the underlying file for read/write access.
HDF5File(const HDF5File &that)
Copy constructor cannot be used.
~HDF5File()
The destructor closes the file and deletes it when it was opened using ByteIO::Scratch or ByteIO::Del...
Bool isClosed() const
Is the file temporarily closed?
hid_t getHid() const
Get the hid.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.