Quantcast

getting the location ID of an object

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

getting the location ID of an object

dimstamat
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, [hidden email] wrote:

Send Hdf-forum mailing list submissions to
[hidden email]

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
[hidden email]

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

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 <[hidden email]>
To: HDF Users Discussion List <[hidden email]>
Subject: Re: [Hdf-forum] getting the location ID of an object
Message-ID: <[hidden email]>
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 <[hidden email]> on behalf of Dimos Stamatakis <[hidden email]>
Reply-To: hdf-forum <[hidden email]>
Date: Tuesday, June 14, 2016 at 10:24 AM
To: hdf-forum <[hidden email]>
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.
[hidden email]
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.
[hidden email]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: getting the location ID of an object

Mohamad Chaarawi

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 <[hidden email]> on behalf of Dimos Stamatakis <[hidden email]>
Reply-To: hdf-forum <[hidden email]>
Date: Tuesday, June 14, 2016 at 12:03 PM
To: hdf-forum <[hidden email]>
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, [hidden email] wrote:

 

Send Hdf-forum mailing list submissions to
[hidden email]

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
[hidden email]

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

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 <[hidden email]>
To: HDF Users Discussion List <[hidden email]>
Subject: Re: [Hdf-forum] getting the location ID of an object
Message-ID: <[hidden email]>
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 <[hidden email]> on behalf of Dimos Stamatakis <[hidden email]>
Reply-To: hdf-forum <[hidden email]>
Date: Tuesday, June 14, 2016 at 10:24 AM
To: hdf-forum <[hidden email]>
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.
[hidden email]
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.
[hidden email]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
Loading...