|
casacore
|
A class representing an HDF5 attribute hid. More...
#include <HDF5HidMeta.h>
Public Member Functions | |
| HDF5HidAttribute () | |
| Default constructor sets hid to invalid. | |
| HDF5HidAttribute (hid_t hid) | |
| Construct from given hid. | |
| ~HDF5HidAttribute () | |
| The destructor closes the hid. | |
| HDF5HidAttribute (const HDF5HidAttribute &)=delete | |
| Copy constructor cannot be used. | |
| HDF5HidAttribute & | operator= (const HDF5HidAttribute &)=delete |
| Assignment cannot be used. | |
| void | close () |
| Close the hid if valid. | |
| void | operator= (hid_t hid) |
| Put hid in it. | |
| hid_t | getHid () const |
| Get the hid. | |
| operator hid_t () const | |
| Convert automatically to hid_t. | |
Private Attributes | |
| hid_t | itsHid |
A class representing an HDF5 attribute hid.
Internal
This class wraps an HDF5 attribute hid (hdf5 id). It offers two benefits:
Definition at line 195 of file HDF5HidMeta.h.
|
inline |
Default constructor sets hid to invalid.
Definition at line 199 of file HDF5HidMeta.h.
|
inline |
Construct from given hid.
Definition at line 202 of file HDF5HidMeta.h.
|
inline |
|
delete |
Copy constructor cannot be used.
| void casacore::HDF5HidAttribute::close | ( | ) |
Close the hid if valid.
Referenced by operator=(), and ~HDF5HidAttribute().
|
inline |
|
inline |
|
delete |
Assignment cannot be used.
|
inline |
Put hid in it.
If it already contains a hid, it will be closed.
Definition at line 214 of file HDF5HidMeta.h.
|
private |
Definition at line 223 of file HDF5HidMeta.h.
Referenced by getHid(), operator hid_t(), and operator=().