casa
$Rev:20696$
|
A class representing an HDF5 dataspace hid.
#include <HDF5HidMeta.h>
Public Member Functions | |
HDF5HidDataSpace () | |
Default constructor sets hid to invalid. | |
HDF5HidDataSpace (hid_t hid) | |
Construct from given hid. | |
~HDF5HidDataSpace () | |
The destructor closes the hid. | |
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 Member Functions | |
HDF5HidDataSpace (const HDF5HidDataSpace &that) | |
Copy constructor cannot be used. | |
HDF5HidDataSpace & | operator= (const HDF5HidDataSpace &that) |
Assignment cannot be used. | |
Private Attributes | |
hid_t | itsHid |
A class representing an HDF5 dataspace hid.
Internal
This class wraps an HDF5 dataspace hid (hdf5 id). It offers two benefits:
Definition at line 150 of file HDF5HidMeta.h.
casa::HDF5HidDataSpace::HDF5HidDataSpace | ( | ) | [inline] |
Default constructor sets hid to invalid.
Definition at line 154 of file HDF5HidMeta.h.
casa::HDF5HidDataSpace::HDF5HidDataSpace | ( | hid_t | hid | ) | [inline] |
Construct from given hid.
Definition at line 157 of file HDF5HidMeta.h.
casa::HDF5HidDataSpace::~HDF5HidDataSpace | ( | ) | [inline] |
casa::HDF5HidDataSpace::HDF5HidDataSpace | ( | const HDF5HidDataSpace & | that | ) | [private] |
Copy constructor cannot be used.
void casa::HDF5HidDataSpace::close | ( | ) |
Close the hid if valid.
Referenced by operator=(), and ~HDF5HidDataSpace().
hid_t casa::HDF5HidDataSpace::getHid | ( | ) | const [inline] |
casa::HDF5HidDataSpace::operator hid_t | ( | ) | const [inline] |
void casa::HDF5HidDataSpace::operator= | ( | hid_t | hid | ) | [inline] |
Put hid in it.
If it already contains a hid, it will be closed.
Definition at line 165 of file HDF5HidMeta.h.
HDF5HidDataSpace& casa::HDF5HidDataSpace::operator= | ( | const HDF5HidDataSpace & | that | ) | [private] |
Assignment cannot be used.
hid_t casa::HDF5HidDataSpace::itsHid [private] |
Definition at line 179 of file HDF5HidMeta.h.
Referenced by getHid(), operator hid_t(), and operator=().