Debian Codegraph @

vendored-meson/meson/test cases/frameworks/25 hdf5/main.cpp

raw
1 #include <iostream>
2 #include "H5Cpp.h"
3
4
5 int main(void)
6 {
7 unsigned maj, min, rel;
8
9 try {
10 H5::H5Library::open();
11 H5::H5Library::getLibVersion(maj, min, rel);
12 std::cout << "C++ HDF5 version " << maj << "." << min << "." << rel << std::endl;
13 H5::H5Library::close();
14 return EXIT_SUCCESS;
15 } catch (H5::LibraryIException &e) {
16 std::cerr << "Exception caught from HDF5: " << e.getDetailMsg() << std::endl;
17 return EXIT_FAILURE;
18 }
19 }