Hdf5TypeResource Class Reference

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

#include <Hdf5Resource.h>

Inheritance diagram for Hdf5TypeResource:

Inheritance graph

List of all members.

Public Member Functions

 Hdf5TypeResource (hid_t type)
 Hdf5TypeResource ()
 operator hid_t * ()


Detailed Description

This is a Resource class that closes HDF5 types.

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

Definition at line 588 of file Hdf5Resource.h.


Constructor & Destructor Documentation

Hdf5TypeResource::Hdf5TypeResource ( hid_t  type  ) 

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

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

Parameters:
type The HDF5 type handle.

Definition at line 600 of file Hdf5Resource.h.

Hdf5TypeResource::Hdf5TypeResource (  ) 

Default constructor.

Definition at line 608 of file Hdf5Resource.h.


Member Function Documentation

Hdf5TypeResource::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 Hdf5TypeResource 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 623 of file Hdf5Resource.h.


Software Development Kit - Opticks 4.9.0 Build 16218