Use of h5diff as a library function

Dear List,

It appears that the only subroutine with an HDF5-comparing functionality
in the HDF5 distribution that is similar to the h5diff command line tool
would be the function h5diff() of the files tools/lib/h5diff.c [.h],
which is internally used by h5diff.

However, the above h5diff.c [.h] seem to end up only in the internal library
of the tools, not in the library for the general public. Given that h5diff()
is thus not part of the documented interface, what would be the most
reasonable way to use it? Maybe verbatim importing of the relevant
files (while honouring the licence) into a depending project?

Provided that the above is correct, are there possibly still other
meaningful options to obtain a subroutine that compares HDF5 files
-- in my case just for a mere equality with some epsilon for floats?

Best regards,
Markus Nullmeier

···

--

-----------------------------------------------------------------------

'Der dritte Platz ist nur was für Männer' - diese und andere originelle E-Cards gib´s hier http://www.arcor.de/ecards/ecards_type.jsp?parentID=177&selectID=277

Markus,

There isn't any good way to use h5diff() function. You may compile h5diff
as a dynamic or static library and use h5diff() in your application but it is not
a simple task.

We are working on a H5Ocompare() public function. This function will do
what h5diff() does and more. The function is still in design stage.

Thanks
--pc

···

On 7/14/2011 7:04 AM, markus.nullmeier.mlist@arcor.de wrote:

Dear List,

It appears that the only subroutine with an HDF5-comparing functionality
in the HDF5 distribution that is similar to the h5diff command line tool
would be the function h5diff() of the files tools/lib/h5diff.c [.h],
which is internally used by h5diff.

However, the above h5diff.c [.h] seem to end up only in the internal library
of the tools, not in the library for the general public. Given that h5diff()
is thus not part of the documented interface, what would be the most
reasonable way to use it? Maybe verbatim importing of the relevant
files (while honouring the licence) into a depending project?

Provided that the above is correct, are there possibly still other
meaningful options to obtain a subroutine that compares HDF5 files
-- in my case just for a mere equality with some epsilon for floats?

Best regards,
Markus Nullmeier