Field3D

Scoped object - opens an native type id on creation and closes it on destruction. More...

#include <Hdf5Util.h>

Inheritance diagram for Hdf5Util::H5ScopedTget_native_type:
Hdf5Util::H5Base

Public Member Functions

 H5ScopedTget_native_type (hid_t dataset_id, H5T_direction_t direction)
 
 ~H5ScopedTget_native_type ()
 
- 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 an native type id on creation and closes it on destruction.

Definition at line 333 of file Hdf5Util.h.

Constructor & Destructor Documentation

◆ H5ScopedTget_native_type()

Hdf5Util::H5ScopedTget_native_type::H5ScopedTget_native_type ( hid_t dataset_id,
H5T_direction_t direction )
inline

Definition at line 336 of file Hdf5Util.h.

337 {
339 m_id = H5Tget_native_type(dataset_id, direction);
340 if (m_id < 0)
341 throw Exc::AttrGetNativeTypeException("Couldn't get native attribute type");
342 }
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.

◆ ~H5ScopedTget_native_type()

Hdf5Util::H5ScopedTget_native_type::~H5ScopedTget_native_type ( )
inline

Definition at line 343 of file Hdf5Util.h.

344 {
346 if (m_id >= 0)
347 H5Tclose(m_id);
348 }

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


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