Hi!
I believe you may want to use H5Lmove on the link to the child node you
want to move.
(http://www.hdfgroup.org/HDF5/doc/RM/RM_H5L.html#Link-Move)
Quincey
On Sep 4, 2011, at 10:53 AM, hansin wrote:
> Hello
> My question is : How can I move one child node(group or dataset type node)
> from its farther
>
> group node to another farther group node?
> Just like drag-drop operate on the DataStruct Tree.
>
> for example:
> //
> //---------------code------------------
> //
> //1. I create 3 group node under "/123"
> hid_t file = H5Fopen(HDF_FILE_NAME, H5F_ACC_RDWR, H5P_DEFAULT);
>
> hid_t parentNode1 = H5Gopen(file, "/123");
> hid_t childNode1 = H5Gcreate(parentNode1, "789", 0);
>
> hid_t parentNode2 = H5Gopen(file, "/456");
>
> //2.Now the HDFfile view is "/123/789" and "/456";
>
> //3.I want move the child node "789" from "/123" to "/456"
> The result is "/123" and "/456/789";
>
> //----------------end------------------
>
> How can I get the result like drag-drop operate in a tree ?
>
> Any help is appreciated.
>
> --
> View this message in context:
> http://hdf-forum.184993.n3.nabble.com/How-can-I-move-one-child-node-group-or-dataset-type-node-from-its-farther-tp3308735p3308735.html
> Sent from the hdf-forum mailing list archive at Nabble.com.
>
> _______________________________________________
> 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