Field3D
Hdf5Util::H5ScopedDget_space Class Reference

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

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedDget_space:
Hdf5Util::H5Base

Public Member Functions

 H5ScopedDget_space ()
 H5ScopedDget_space (hid_t dataset_id)
void open (hid_t dataset_id)
 ~H5ScopedDget_space ()
- Public Member Functions inherited from Hdf5Util::H5Base
 H5Base ()
hid_t id () const
 Query the hid_t value.
 operator hid_t ()
 Implicit cast to hid_t.

Additional Inherited Members

- Protected Attributes inherited from Hdf5Util::H5Base
hid_t m_id

Detailed Description

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

Definition at line 353 of file Hdf5Util.h.

Constructor & Destructor Documentation

Hdf5Util::H5ScopedDget_space::H5ScopedDget_space ( )
inline

Definition at line 356 of file Hdf5Util.h.

: H5Base()
{
// Empty
}
Hdf5Util::H5ScopedDget_space::H5ScopedDget_space ( hid_t  dataset_id)
inline

Definition at line 361 of file Hdf5Util.h.

References open().

{
open(dataset_id);
}
Hdf5Util::H5ScopedDget_space::~H5ScopedDget_space ( )
inline

Definition at line 369 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

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

Member Function Documentation

void Hdf5Util::H5ScopedDget_space::open ( hid_t  dataset_id)
inline

Definition at line 365 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

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

{
m_id = H5Dget_space(dataset_id);
}

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