The best way to create a link in HDFView is to use the following steps:
1) right-mouse click on a group
2) "new" --> "Link"


Thanks
--pc


On 3/9/2011 7:46 AM, Mukund Rajamony wrote:
Hi,
I am trying to link two datasets, in the HDF viewer, I expect one of the datasets to appear with a "Link to Target" General Property
The code I am writing for it is
.....

//Create the plyElemSet.

hsize_t dim[] = { indices.size() };

H5::IntType plyElemSetType( H5::PredType::NATIVE_INT );

H5::DataSet plyElemSet = file.createDataSet(

plyElemSetPath.str().c_str(), plyElemSetType, H5::DataSpace( 1, dim ) );

//write it to the meshElementSetPath

H5::DataSet meshElementSet = file.createDataSet(

meshSpElementDataSetPath.str().c_str(), plyElemSetType, H5::DataSpace( 1, dim ) );

meshElementSet.write( &(indices[0]), plyElemSetType );

//link plyElemSet to meshElementSetPath

plyElemSet.reference((void*)&meshElementSet, meshSpElementDataSetPath.str().c_str());

....

It doesn't link the way I would like it to. Any help, examples would be most useful.
Thanks,

Mukund Rajamony,


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to