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

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 ()
 
- Public Member Functions inherited from Hdf5Util::H5Base
 H5Base ()
 
hid_t id () const
 Query the hid_t value. More...
 
 operator hid_t ()
 Implicit cast to hid_t. More...
 

Additional Inherited Members

- Protected Attributes inherited from Hdf5Util::H5Base
hid_t m_id
 

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.

246  {
247  m_id = H5Dcreate(parentLocation, name.c_str(), dtype_id, space_id,
248  lcpl_id, dcpl_id, dapl_id);
249  }
Hdf5Util::H5ScopedDcreate::~H5ScopedDcreate ( )
inline

Definition at line 250 of file Hdf5Util.h.

References Hdf5Util::H5Base::m_id.

251  {
252  if (m_id >= 0)
253  H5Dclose(m_id);
254  }

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