Hdf5AttributeResource Class Reference

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

#include <Hdf5Resource.h>

Inheritance diagram for Hdf5AttributeResource:

Inheritance graph

List of all members.

Public Member Functions

 Hdf5AttributeResource (hid_t attribute)
 Hdf5AttributeResource ()
 operator hid_t * ()


Detailed Description

This is a Resource class that closes HDF5 attributes.

This is a Resource class that closes HDF5 attributes. It has a conversion operator to allow a Hdf5AttributeResource object to be used where ever a hid_t that represents an open HDF5 attribute Handle may be used.

Definition at line 456 of file Hdf5Resource.h.


Constructor & Destructor Documentation

Hdf5AttributeResource::Hdf5AttributeResource ( hid_t  attribute  ) 

Construct a Resource object that wraps a hid_t HDF5 Attribute Handle.

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

Parameters:
attribute The HDF5 attribute handle.

Definition at line 468 of file Hdf5Resource.h.

Hdf5AttributeResource::Hdf5AttributeResource (  ) 

Default constructor.

Definition at line 476 of file Hdf5Resource.h.


Member Function Documentation

Hdf5AttributeResource::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 Hdf5AttributeResource 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 491 of file Hdf5Resource.h.


Software Development Kit - Opticks 4.9.0 Build 16218