Re: question about renaming a HDF5 dataset...

Ed,

Bear in mind that the "names" are on links, not on the dataset.

Renaming is really chaning the name of one of the links to an object.

So you can always rename something by creating a new link to it and
deleting the old.  (H5Glink, unlink).

The Gmove does this in one atomic operation.

So either way does the same thing, whichever fits best to what you
are doing.


Robert E. McGrath
National Center for Supercomputing Applications
University of Illinois, Urbana-Champaign
Champaign, Illinois 61820
(217)-333-6549

mcgrath@xxxxxxxxxxxxx

On Mon, 1 Aug 2005, Ed Hartnett wrote:

Quincey Koziol <koziol@xxxxxxxxxxxxx> writes:

Hi Ed,

Is there any easy way to rename an existing HDF5 dataset?

    H5Gmove2()  :-)

        Quincey



Thanks!

Just what I needed.

Ed
--
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx