Field3D

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

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedGcreate:
Hdf5Util::H5Base

Public Member Functions

 H5ScopedGcreate (hid_t parentLocation, const std::string &name)
 
 H5ScopedGcreate (hid_t parentLocation, const std::string &name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id)
 
 ~H5ScopedGcreate ()
 
- 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 - creates a group on creation and closes it on destruction.

Definition at line 165 of file Hdf5Util.h.

Constructor & Destructor Documentation

◆ H5ScopedGcreate() [1/2]

Hdf5Util::H5ScopedGcreate::H5ScopedGcreate ( hid_t parentLocation,
const std::string & name )
inline

Definition at line 168 of file Hdf5Util.h.

169 {
171 m_id = H5Gcreate(parentLocation, name.c_str(),
172 H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
173 }
FIELD3D_NAMESPACE_OPEN FIELD3D_API boost::recursive_mutex g_hdf5Mutex
Definition Hdf5Util.cpp:67
boost::recursive_mutex::scoped_lock GlobalLock
Definition Hdf5Util.h:78

References g_hdf5Mutex, and Hdf5Util::H5Base::m_id.

◆ H5ScopedGcreate() [2/2]

Hdf5Util::H5ScopedGcreate::H5ScopedGcreate ( hid_t parentLocation,
const std::string & name,
hid_t lcpl_id,
hid_t gcpl_id,
hid_t gapl_id )
inline

Definition at line 174 of file Hdf5Util.h.

176 {
178 m_id = H5Gcreate(parentLocation, name.c_str(),
179 lcpl_id, gcpl_id, gapl_id);
180 }

References g_hdf5Mutex, and Hdf5Util::H5Base::m_id.

◆ ~H5ScopedGcreate()

Hdf5Util::H5ScopedGcreate::~H5ScopedGcreate ( )
inline

Definition at line 182 of file Hdf5Util.h.

183 {
185 if (m_id >= 0)
186 H5Gclose(m_id);
187 }

References g_hdf5Mutex, and Hdf5Util::H5Base::m_id.


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