 |
VTK
9.3.1
|
Go to the documentation of this file.
3 #ifndef vtkHDF5ScopedHandle_h
4 #define vtkHDF5ScopedHandle_h
8 VTK_ABI_NAMESPACE_BEGIN
13 #define DefineScopedHandle(name) \
14 class ScopedH5##name##Handle \
17 ScopedH5##name##Handle(const ScopedH5##name##Handle& other) { this->Handle = other.Handle; } \
18 ScopedH5##name##Handle(hid_t handle) \
22 virtual ~ScopedH5##name##Handle() \
24 if (this->Handle >= 0) \
26 H5##name##close(this->Handle); \
30 operator hid_t() const { return this->Handle; } \