Field3D
Hdf5Util::H5ScopedDget_type Class Reference

Scoped object - opens a dataset on creation and closes it on destruction. More...

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedDget_type:
Hdf5Util::H5Base

List of all members.

Public Member Functions

 H5ScopedDget_type ()
 H5ScopedDget_type (hid_t dataset_id)
void open (hid_t dataset_id)
 ~H5ScopedDget_type ()

Detailed Description

Scoped object - opens a dataset on creation and closes it on destruction.

Definition at line 381 of file Hdf5Util.h.


Constructor & Destructor Documentation

Hdf5Util::H5ScopedDget_type::H5ScopedDget_type ( ) [inline]

Definition at line 384 of file Hdf5Util.h.

    : H5Base()
  {
    // Empty
  }
Hdf5Util::H5ScopedDget_type::H5ScopedDget_type ( hid_t  dataset_id) [inline]

Definition at line 389 of file Hdf5Util.h.

References open().

  {
    open(dataset_id);
  }
Hdf5Util::H5ScopedDget_type::~H5ScopedDget_type ( ) [inline]

Definition at line 397 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

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

Member Function Documentation

bool Field3DInputFile::open ( hid_t  dataset_id) [inline]

Definition at line 393 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

Referenced by H5ScopedDget_type(), and SparseDataReader< Data_T >::SparseDataReader().

  {
    m_id = H5Dget_type(dataset_id);
  }

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