casa
$Rev:20696$
|
A class representing an HDF5 group. More...
#include <HDF5Group.h>
Public Member Functions | |
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. | |
Static Public Member Functions | |
static void | remove (const HDF5Object &parentHid, const String &name) |
Delete group at the given hid if it exists. | |
Private Member Functions | |
HDF5Group (const HDF5Group &that) | |
Copy constructor cannot be used. | |
HDF5Group & | operator= (const HDF5Group &that) |
Assignment cannot be used. | |
void | init (hid_t parentHid, const String &parentName, const String &name, bool mustExist=false, bool mustNotExist=false) |
Initialize (execute the constructor). |
A class representing an HDF5 group.
Public interface
This class wraps an HDF5 group hid (hdf5 id). It offers two benefits:
Definition at line 52 of file HDF5Group.h.
casa::HDF5Group::HDF5Group | ( | ) | [inline] |
Construct from given hid.
Definition at line 56 of file HDF5Group.h.
casa::HDF5Group::HDF5Group | ( | const HDF5Object & | parentHid, |
const String & | name, | ||
bool | mustExist = false , |
||
bool | mustNotExist = false |
||
) | [inline] |
Open or create a group at the given hid.
Default is that the group may exist; it is created if not existing.
Definition at line 62 of file HDF5Group.h.
References casa::HDF5Object::getName(), init(), and casa::name().
casa::HDF5Group::HDF5Group | ( | hid_t | parentHid, |
const String & | name, | ||
bool | mustExist = false , |
||
bool | mustNotExist = false |
||
) | [inline] |
Definition at line 66 of file HDF5Group.h.
virtual casa::HDF5Group::~HDF5Group | ( | ) | [virtual] |
The destructor closes the hid.
casa::HDF5Group::HDF5Group | ( | const HDF5Group & | that | ) | [private] |
Copy constructor cannot be used.
virtual void casa::HDF5Group::close | ( | ) | [virtual] |
Close the hid if valid.
Implements casa::HDF5Object.
void casa::HDF5Group::init | ( | hid_t | parentHid, |
const String & | parentName, | ||
const String & | name, | ||
bool | mustExist = false , |
||
bool | mustNotExist = false |
||
) | [private] |
Initialize (execute the constructor).
Referenced by HDF5Group().
Assignment cannot be used.
static void casa::HDF5Group::remove | ( | const HDF5Object & | parentHid, |
const String & | name | ||
) | [static] |
Delete group at the given hid if it exists.