Hmm why do you need the same ID?
The ID is just a token that will dereference to the same object.

There is no requirement that the ID be the same.

Mohamad

From: Hdf-forum <[email protected]> on behalf of Dimos 
Stamatakis <[email protected]>
Reply-To: hdf-forum <[email protected]>
Date: Tuesday, June 14, 2016 at 12:03 PM
To: hdf-forum <[email protected]>
Subject: [Hdf-forum] getting the location ID of an object

Thanks Mohamad! However, I would need the same location ID, not an new one. For 
example, how does the native find the location ID of the containing group so 
that to pass it to the apply callback op (H5A_operator2_t op)?

Thanks,

Dimos

---
Dimokritos Stamatakis
PhD student,
Brandeis University

On Jun 14, 2016, at 1:00 PM, 
[email protected]<mailto:[email protected]>
 wrote:

Send Hdf-forum mailing list submissions to
[email protected]<mailto:[email protected]>

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Hdf-forum digest..."


Today's Topics:

  1. Re: getting the location ID of an object (Mohamad Chaarawi)


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

Message: 1
Date: Tue, 14 Jun 2016 15:56:56 +0000
From: Mohamad Chaarawi <[email protected]>
To: HDF Users Discussion List <[email protected]>
Subject: Re: [Hdf-forum] getting the location ID of an object
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

You can?t get the location id, but you can create one yourself using:
H5VLobject_register() if external plugin
Or H5VL_object_register() if internal plugin.

Thanks,
Mohamad

From: Hdf-forum <[email protected]> on behalf of Dimos 
Stamatakis <[email protected]>
Reply-To: hdf-forum <[email protected]>
Date: Tuesday, June 14, 2016 at 10:24 AM
To: hdf-forum <[email protected]>
Subject: [Hdf-forum] getting the location ID of an object

Hello,

is there a way to get the location ID of an object given the object itself, or 
maybe from the location parameters? (H5VL_loc_params_t).
For example, if we want to iterate over the attributes of group "mygroup", we 
call H5Aiterate2 and we pass the location ID of mygroup. Then, within the 
attr_specific function we get the group itself (void* obj) and not its location 
ID. Is there a way to get the location ID somehow? It is required for passing 
it to the apply function.

Thanks,

Dimos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.hdfgroup.org/pipermail/hdf-forum_lists.hdfgroup.org/attachments/20160614/b0e6f104/attachment-0001.html>

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

Subject: Digest Footer

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


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

End of Hdf-forum Digest, Vol 84, Issue 13
*****************************************

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to