hops
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Functions
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
b
d
e
f
m
o
p
r
s
u
v
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
~
Variables
_
a
b
c
d
e
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
c
e
f
h
i
m
r
s
t
u
v
Enumerations
Enumerator
Related Functions
:
a
c
d
f
h
n
o
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Functions
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
w
Variables
Typedefs
c
d
f
n
p
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
hops
Third-party
HighFive
include
highfive
H5Utility.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c), 2017, Blue Brain Project - 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
20
class
SilenceHDF5
{
21
public
:
22
inline
SilenceHDF5
(
bool
enable=
true
)
23
: _client_data(nullptr)
24
{
25
H5Eget_auto2(H5E_DEFAULT, &_func, &_client_data);
26
if
(enable) H5Eset_auto2(H5E_DEFAULT, NULL, NULL);
27
}
28
29
inline
~SilenceHDF5
() {
30
H5Eset_auto2(H5E_DEFAULT, _func, _client_data);
31
}
32
33
private
:
34
H5E_auto2_t _func;
35
void
* _client_data;
36
};
37
38
}
// namespace HighFive
39
40
#endif // H5UTIL_HPP
HighFive::SilenceHDF5
Utility class to disable HDF5 stack printing inside a scope.
Definition:
H5Utility.hpp:20
HighFive::SilenceHDF5::SilenceHDF5
SilenceHDF5(bool enable=true)
Definition:
H5Utility.hpp:22
HighFive::SilenceHDF5::~SilenceHDF5
~SilenceHDF5()
Definition:
H5Utility.hpp:29
HighFive
Definition:
H5_definitions.hpp:15
Generated by
1.8.17