Field3D
Hdf5Util::H5ScopedAget_space Class Reference

Scoped object - opens an attribute data space on creation and closes it on destruction. More...

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedAget_space:
Hdf5Util::H5Base

List of all members.

Public Member Functions

 H5ScopedAget_space (hid_t dataset_id)
 ~H5ScopedAget_space ()

Detailed Description

Scoped object - opens an attribute data space on creation and closes it on destruction.

Definition at line 262 of file Hdf5Util.h.


Constructor & Destructor Documentation

Hdf5Util::H5ScopedAget_space::H5ScopedAget_space ( hid_t  dataset_id) [inline]

Definition at line 265 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

  {
    m_id = H5Aget_space(dataset_id);
    if (m_id < 0)
      throw Exc::AttrGetSpaceException("Couldn't get attribute space");
  }
Hdf5Util::H5ScopedAget_space::~H5ScopedAget_space ( ) [inline]

Definition at line 271 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

  {
    if (m_id >= 0)
      H5Sclose(m_id);
  }

The documentation for this class was generated from the following file: