32 #include <pni/core/types.hpp>
33 #include <pni/core/error.hpp>
90 h5_error_stack &operator=(const h5_error_stack &s);
123 const_iterator
begin()
const;
129 const_iterator
end()
const;
139 std::ostream &
operator<<(std::ostream &o,
const h5_error_stack &s);
151 extern "C" herr_t
_error_walker(
unsigned n,
const H5E_error2_t *eptr,
std::ostream & operator<<(std::ostream &o, const h5_error &e)
ouput stream operator
Definition: h5_error.cpp:201
h5_error_stack() noexcept
default constructor
Definition: h5_error_stack.cpp:55
herr_t _error_walker(unsigned n, const H5E_error2_t *eptr, void *client_data)
Walker functins to read over error messages.
Definition: h5_error_stack.cpp:38
std::vector< value_type > container_type
container type to store errors
Definition: h5_error_stack.hpp:56
const_iterator end() const
iterator to last element
Definition: h5_error_stack.cpp:108
Definition: cbf_reader.hpp:41
void fill()
fill stack
Definition: h5_error_stack.cpp:64
pni::core::string get_h5_error_string()
return HDF5 error messages
Definition: h5_error_stack.cpp:126
HDF5 error stack.
Definition: h5_error_stack.hpp:50
ssize_t number_of_errors() const
get number of errors
Definition: h5_error_stack.hpp:99
container_type _errors
vector with error records on this stack
Definition: h5_error_stack.hpp:65
HDF5 error record.
Definition: h5_error.hpp:50
hid_t _stack_id
id of the error stack
Definition: h5_error_stack.hpp:63
container_type::iterator iterator
non-const iterator type
Definition: h5_error_stack.hpp:58
const_iterator begin() const
iterator to first error
Definition: h5_error_stack.cpp:102
container_type::const_iterator const_iterator
const iterator type
Definition: h5_error_stack.hpp:60
h5_error value_type
the element type of the stack - the error type
Definition: h5_error_stack.hpp:54
void append(const h5_error &e)
append error
Definition: h5_error_stack.cpp:99