Go to the documentation of this file.
28 #ifndef CASA_HDF5GROUP_H
29 #define CASA_HDF5GROUP_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/HDF5/HDF5Object.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); }
98 bool mustExist=
false,
bool mustNotExist=
false);
const String & getName() const
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.
HDF5Group(hid_t parentHid, const String &name, bool mustExist=false, bool mustNotExist=false)
HDF5Group(const HDF5Group &that)
Copy constructor cannot be used.
A class representing an HDF5 group.
virtual void close()
Close the hid if valid.
HDF5Group()
Construct from given hid.
this file contains all the compiler specific defines
HDF5Group(const HDF5Object &parentHid, const String &name, bool mustExist=false, bool mustNotExist=false)
Open or create a group at the given hid.
static std::vector< String > linkNames(const HDF5Object &parentHid)
Get the names of all links at the given hid.
String: the storage and methods of handling collections of characters.
void init(hid_t parentHid, const String &parentName, const String &name, bool mustExist=false, bool mustNotExist=false)
Initialize (execute the constructor).
An abstract base class representing an HDF5 object.
HDF5Group & operator=(const HDF5Group &that)
Assignment cannot be used.
virtual ~HDF5Group()
The destructor closes the hid.