Hi Martin,

You are correct in that there is no C++ API to create an external link. We have 
not had the resources to
implement all C APIs in C++.

You can use the H5Lcreate_external C routine to create an external link.  You 
must pass in both a link creation and a
link access property list identifier to H5Lcreate_external. Those property list 
identifiers  can be obtained with C++
calls. For example:  lcpl.getId().


From: Hdf-forum [mailto:hdf-forum-boun...@lists.hdfgroup.org] On Behalf Of 
Martin Shetty
Sent: Friday, January 13, 2017 8:50 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] External links in C++ API?

Hello from Copenhagen all,

I'm from Tobias' group here at ESS data management.
Ran into a bit of an interesting problem. We want to create an external link to 
a different data file, as defined in the C API here:
But we want to do this using the C++ API. I can find ways to create hard and 
soft links, as described here:
but there doesn't seem to be any implementation for creating external links in 
C++? What gives?

Cheers :)
Hdf-forum is for HDF software users discussion.
Twitter: https://twitter.com/hdf5

Reply via email to