28 #ifndef CASA_HDF5GROUP_H
29 #define CASA_HDF5GROUP_H
66 bool mustExist=
false,
bool mustNotExist=
false)
67 {
init (parentHid, parentHid.
getName(), name, mustExist, mustNotExist); }
70 bool mustExist=
false,
bool mustNotExist=
false)
71 {
init (parentHid,
String(), name, mustExist, mustNotExist); }
96 void init (hid_t parentHid,
const String& parentName,
98 bool mustExist=
false,
bool mustNotExist=
false);
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.
A class representing an HDF5 group.
void init(hid_t parentHid, const String &parentName, const String &name, bool mustExist=false, bool mustNotExist=false)
Initialize (execute the constructor).
HDF5Group()
Construct from given hid.
HDF5Group & operator=(const HDF5Group &that)
Assignment cannot be used.
const String & getName() const
virtual ~HDF5Group()
The destructor closes the hid.
virtual void close()
Close the hid if valid.
An abstract base class representing an HDF5 object.
HDF5Group(const HDF5Object &parentHid, const String &name, bool mustExist=false, bool mustNotExist=false)
Open or create a group at the given hid.
String: the storage and methods of handling collections of characters.
HDF5Group(hid_t parentHid, const String &name, bool mustExist=false, bool mustNotExist=false)