26#ifndef CASA_HDF5OBJECT_H
27#define CASA_HDF5OBJECT_H
30#include <casacore/casa/aips.h>
31#include <casacore/casa/BasicSL/String.h>
94 operator hid_t()
const {
return itsHid; }
HDF5Object & operator=(const HDF5Object &)=delete
Assignment cannot be used because a HID cannot be copied.
HDF5Object()
Default constructor sets to invalid hid.
virtual ~HDF5Object()
The destructor in a derived class should close the hid appropriately.
virtual void close()=0
Close the hid if valid.
void clearHid()
Clear the hid (set to invalid).
static Bool hasHDF5Support()
Check if there is HDF5 support compiled in.
hid_t getHid() const
Get the hid.
const String & getName() const
static void throwNoHDF5()
If no HDF5, throw an exception that HDF5 is not supported.
void setName(const String &name)
Get or set the name.
void setHid(hid_t hid)
Set the hid.
bool isValid() const
Is it a valid hid?
HDF5Object(const HDF5Object &)=delete
Copy constructor cannot be used because a HID cannot be copied.
String: the storage and methods of handling collections of characters.
For temporary backward namespace compatibility, use casa as alias for casacore.
String name() const
Return the name of the field.
bool Bool
Define the standard types used by Casacore.
unsigned long long uInt64