|
| HDF5Group () |
| Construct from given hid.
|
|
| HDF5Group (const HDF5Object &parentHid, const String &name, bool mustExist=false, bool mustNotExist=false) |
| Open or create a group at the given hid.
|
|
| HDF5Group (hid_t parentHid, const String &name, bool mustExist=false, bool mustNotExist=false) |
|
virtual | ~HDF5Group () |
| The destructor closes the hid.
|
|
virtual void | close () |
| Close the hid if valid.
|
|
| HDF5Object () |
| Default constructor sets to invalid hid.
|
|
virtual | ~HDF5Object () |
| The destructor in a derived class should close the hid appropriately.
|
|
| HDF5Object (const HDF5Object &)=delete |
| Copy constructor cannot be used because a HID cannot be copied.
|
|
HDF5Object & | operator= (const HDF5Object &)=delete |
| Assignment cannot be used because a HID cannot be copied.
|
|
bool | isValid () const |
| Is it a valid hid?
|
|
hid_t | getHid () const |
| Get the hid.
|
|
| operator hid_t () const |
| Convert automatically to hid_t.
|
|
void | setName (const String &name) |
| Get or set the name.
|
|
const String & | getName () const |
|
|
static std::vector< String > | linkNames (const HDF5Object &parentHid) |
| Get the names of all links at the given hid.
|
|
static bool | exists (const HDF5Object &parentHid, const String &name) |
| Test if the group at the given hid exists.
|
|
static void | remove (const HDF5Object &parentHid, const String &name) |
| Delete group at the given hid if it exists.
|
|
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.
|
|
A class representing an HDF5 group.
Intended use:
Public interface
Review Status
- Test programs:
- tHDF5Dataset
Synopsis
This class wraps an HDF5 group hid (hdf5 id). It offers two benefits:
-
The most important is resource management. In case of an exception, the hid will automatically be closed by the destructor.
-
A hid is a kind of pointer and should not be copied. These classes make it possible to use them in a shared pointer.
Definition at line 52 of file HDF5Group.h.