Hdf5DataSpaceResource Class Reference

This is a Resource class that closes HDF5 dataspaces. More...

#include <Hdf5Resource.h>

Inheritance diagram for Hdf5DataSpaceResource:

Inheritance graph

List of all members.

Public Member Functions

 Hdf5DataSpaceResource (hid_t dataspace)
 Hdf5DataSpaceResource ()
 operator hid_t * ()


Detailed Description

This is a Resource class that closes HDF5 dataspaces.

This is a Resource class that closes HDF5 dataspaces. It has a conversion operator to allow a Hdf5DataSpaceResource object to be used where ever a hid_t that represents an open HDF5 dataspace handle may be used.

Definition at line 696 of file Hdf5Resource.h.


Constructor & Destructor Documentation

Hdf5DataSpaceResource::Hdf5DataSpaceResource ( hid_t  dataspace  ) 

Construct a Resource object that wraps a hid_t HDF5 dataspace handle.

This will take ownership of an existing hid_t dataspace handle and will ensure that it is closed.

Parameters:
dataspace The HDF5 dataspace handle.

Definition at line 708 of file Hdf5Resource.h.

Hdf5DataSpaceResource::Hdf5DataSpaceResource (  ) 

Default constructor.

Definition at line 716 of file Hdf5Resource.h.


Member Function Documentation

Hdf5DataSpaceResource::operator hid_t * (  ) 

Returns a pointer to the underlying hid_t held by this Resource.

Returns a pointer to the underlying hid_t. This operator, used in conjunction with the dereferencing operator, allows the Hdf5DataSpaceResource object to be used where ever a hid_t would normally be used.

Returns:
A pointer to the underlying hid_t held by this Resource.

Definition at line 731 of file Hdf5Resource.h.


Software Development Kit - Opticks 4.9.0 Build 16218