Field3D
Hdf5Util::H5ScopedDcreate Class Reference

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

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedDcreate:
Hdf5Util::H5Base

List of all members.

Public Member Functions

 H5ScopedDcreate (hid_t parentLocation, const std::string &name, hid_t dtype_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id)
 ~H5ScopedDcreate ()

Detailed Description

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

Definition at line 240 of file Hdf5Util.h.


Constructor & Destructor Documentation

Hdf5Util::H5ScopedDcreate::H5ScopedDcreate ( hid_t  parentLocation,
const std::string &  name,
hid_t  dtype_id,
hid_t  space_id,
hid_t  lcpl_id,
hid_t  dcpl_id,
hid_t  dapl_id 
) [inline]

Definition at line 243 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

  {
    m_id = H5Dcreate(parentLocation, name.c_str(), dtype_id, space_id,
                     lcpl_id, dcpl_id, dapl_id);
  }
Hdf5Util::H5ScopedDcreate::~H5ScopedDcreate ( ) [inline]

Definition at line 250 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

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

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