Field3D
Hdf5Util::H5ScopedScreate Class Reference

Scoped object - creates a dataspace on creation and closes it on destruction. More...

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedScreate:
Hdf5Util::H5Base

List of all members.

Public Member Functions

void create (H5S_class_t type)
 H5ScopedScreate (H5S_class_t type)
 H5ScopedScreate ()
 ~H5ScopedScreate ()

Detailed Description

Scoped object - creates a dataspace on creation and closes it on destruction.

Definition at line 213 of file Hdf5Util.h.


Constructor & Destructor Documentation

Hdf5Util::H5ScopedScreate::H5ScopedScreate ( ) [inline]

Definition at line 216 of file Hdf5Util.h.

    : H5Base()
  {
    // Empty
  }
Hdf5Util::H5ScopedScreate::H5ScopedScreate ( H5S_class_t  type) [inline]

Definition at line 221 of file Hdf5Util.h.

References create().

  {
    create(type);
  }
Hdf5Util::H5ScopedScreate::~H5ScopedScreate ( ) [inline]

Definition at line 229 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

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

Member Function Documentation

void Hdf5Util::H5ScopedScreate::create ( H5S_class_t  type) [inline]

Definition at line 225 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

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

  {
    m_id = H5Screate(type);
  }

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