summaryrefslogtreecommitdiff
path: root/test cases/frameworks/25 hdf5/main.cpp
blob: 9c7f7bfb68e99b8fd19d84cac0a7ae8f026f251c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include "H5Cpp.h"


int main(void)
{
unsigned maj, min, rel;

try {
    H5::H5Library::open();
    H5::H5Library::getLibVersion(maj, min, rel);
    std::cout << "C++ HDF5 version " << maj << "." << min << "." << rel << std::endl;
    H5::H5Library::close();
    return EXIT_SUCCESS;
} catch (H5::LibraryIException &e) {
    std::cerr << "Exception caught from HDF5: " << e.getDetailMsg() << std::endl;
    return EXIT_FAILURE;
}
}