casacore
|
An abstract base class representing an HDF5 object. More...
#include <HDF5Object.h>
Public Member Functions | |
HDF5Object () | |
Default constructor sets to invalid hid. More... | |
virtual | ~HDF5Object () |
The destructor in a derived class should close the hid appropriately. More... | |
virtual void | close ()=0 |
Close the hid if valid. More... | |
bool | isValid () const |
Is it a valid hid? More... | |
hid_t | getHid () const |
Get the hid. More... | |
operator hid_t () const | |
Convert automatically to hid_t. More... | |
void | setName (const String &name) |
Get or set the name. More... | |
const String & | getName () const |
Static Public Member Functions | |
static Bool | hasHDF5Support () |
Check if there is HDF5 support compiled in. More... | |
static void | throwNoHDF5 () |
If no HDF5, throw an exception that HDF5 is not supported. More... | |
Protected Member Functions | |
void | setHid (hid_t hid) |
Set the hid. More... | |
void | clearHid () |
Clear the hid (set to invalid). More... | |
Private Member Functions | |
HDF5Object (const HDF5Object &that) | |
Copy constructor cannot be used. More... | |
HDF5Object & | operator= (const HDF5Object &that) |
Assignment cannot be used. More... | |
Private Attributes | |
union { | |
hid_t itsHid | |
int64_t itsDummyHid | |
}; | |
String | itsName |
An abstract base class representing an HDF5 object.
Public interface
This class wraps a basic HDF5 object. It offers several benefits:
Definition at line 70 of file HDF5Object.h.
|
inline |
Default constructor sets to invalid hid.
Definition at line 74 of file HDF5Object.h.
|
virtual |
The destructor in a derived class should close the hid appropriately.
|
private |
Copy constructor cannot be used.
|
inlineprotected |
|
pure virtual |
Close the hid if valid.
Implemented in casacore::HDF5DataSet, casacore::HDF5File, and casacore::HDF5Group.
|
inline |
Get the hid.
Definition at line 92 of file HDF5Object.h.
References itsHid.
Referenced by casacore::HDF5File::isClosed().
|
inline |
Definition at line 103 of file HDF5Object.h.
References itsName.
Referenced by casacore::HDF5Group::HDF5Group().
|
static |
Check if there is HDF5 support compiled in.
Referenced by casacore::canUseHDF5Image().
|
inline |
|
inline |
|
private |
Assignment cannot be used.
|
inlineprotected |
|
inline |
|
static |
If no HDF5, throw an exception that HDF5 is not supported.
union { ... } |
int64_t casacore::HDF5Object::itsDummyHid |
Definition at line 125 of file HDF5Object.h.
hid_t casacore::HDF5Object::itsHid |
Definition at line 124 of file HDF5Object.h.
Referenced by clearHid(), getHid(), isValid(), operator hid_t(), and setHid().
|
private |
Definition at line 127 of file HDF5Object.h.