 |
VTK
9.2.6
|
Go to the documentation of this file. 1 #ifndef vtkHDF5ScopedHandle_h
2 #define vtkHDF5ScopedHandle_h
10 #define DefineScopedHandle(name) \
11 class ScopedH5##name##Handle \
14 ScopedH5##name##Handle(const ScopedH5##name##Handle& other) { this->Handle = other.Handle; } \
15 ScopedH5##name##Handle(hid_t handle) \
19 virtual ~ScopedH5##name##Handle() \
21 if (this->Handle >= 0) \
23 H5##name##close(this->Handle); \
27 operator hid_t() const { return this->Handle; } \