H5Utility.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c), 2017, Juan Hernando <juan.hernando@epfl.ch>
3  *
4  * Distributed under the Boost Software License, Version 1.0.
5  * (See accompanying file LICENSE_1_0.txt or copy at
6  * http://www.boost.org/LICENSE_1_0.txt)
7  *
8  */
9 
10 #ifndef H5UTILITY_HPP
11 #define H5UTILITY_HPP
12 
13 #include <H5Epublic.h>
14 
15 namespace HighFive {
16 
18 class SilenceHDF5 {
19 public:
20  inline SilenceHDF5()
21  : _client_data(0)
22  {
23  H5Eget_auto2(H5E_DEFAULT, &_func, &_client_data);
24  H5Eset_auto2(H5E_DEFAULT, 0, 0);
25  }
26 
27  inline ~SilenceHDF5() { H5Eset_auto2(H5E_DEFAULT, _func, _client_data); }
28 private:
29  H5E_auto2_t _func;
30  void* _client_data;
31 };
32 }
33 
34 #endif // H5UTIL_HPP
Utility class to disable HDF5 stack printing inside a scope.
Definition: H5Utility.hpp:18


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06