28 #ifndef CASA_HDF5OBJECT_H 29 #define CASA_HDF5OBJECT_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/BasicSL/String.h> 42 typedef unsigned long long hsize_t;
100 virtual void close() = 0;
111 operator hid_t()
const virtual void close()=0
Close the hid if valid.
static Bool hasHDF5Support()
Check if there is HDF5 support compiled in.
static void throwNoHDF5()
If no HDF5, throw an exception that HDF5 is not supported.
void setHid(hid_t hid)
Set the hid.
void check_hsize_t(unsigned long long)
void setName(const String &name)
Get or set the name.
virtual ~HDF5Object()
The destructor in a derived class should close the hid appropriately.
bool Bool
Define the standard types used by Casacore.
void clearHid()
Clear the hid (set to invalid).
HDF5Object()
Default constructor sets to invalid hid.
const String & getName() const
An abstract base class representing an HDF5 object.
bool isValid() const
Is it a valid hid?
String: the storage and methods of handling collections of characters.
void throwInvHDF5()
Define 2 functions to check that hid_t and hsize_t are mapped correctly.
HDF5Object & operator=(const HDF5Object &that)
Assignment cannot be used.
hid_t getHid() const
Get the hid.
this file contains all the compiler specific defines