Hdf5GroupResource Class Reference

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

#include <Hdf5Resource.h>

Inheritance diagram for Hdf5GroupResource:

Inheritance graph

List of all members.

Public Member Functions

 Hdf5GroupResource (hid_t group)
 Hdf5GroupResource ()
 operator hid_t * ()


Detailed Description

This is a Resource class that closes HDF5 groups.

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

Definition at line 805 of file Hdf5Resource.h.


Constructor & Destructor Documentation

Hdf5GroupResource::Hdf5GroupResource ( hid_t  group  ) 

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

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

Parameters:
group The HDF5 group handle.

Definition at line 817 of file Hdf5Resource.h.

Hdf5GroupResource::Hdf5GroupResource (  ) 

Default constructor.

Definition at line 825 of file Hdf5Resource.h.


Member Function Documentation

Hdf5GroupResource::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 Hdf5GroupResource 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 840 of file Hdf5Resource.h.


Software Development Kit - Opticks 4.9.0 Build 16218