[gt-users] Attach user data to GtGenomeNodes

Brent Pedersen bpederse at gmail.com
Wed Feb 18 20:16:17 CET 2009


On Wed, Feb 18, 2009 at 7:58 AM, Sascha Steinbiss
<steinbiss at zbh.uni-hamburg.de> wrote:
> Hi everyone,
>
> it would be nice if there was a possibility to attach (a pointer to)
> arbitrary user data to a GtGenomeNode object. This could be used to pass
> information for which there is no designated property from one stream to
> another. A similar technique is used in the cairo framework
> (http://cairographics.org/manual/cairo-surface.html#cairo-surface-set-user-data)
> in which there are cairo_surface_set_user_data() and
> cairo_surface_get_user_data() methods for exactly that purpose. (I do
> not think we would need their key functionality, just a simple void
> pointer would be enough).
>
> I could need this functionality right now; what do you think about such
> an addition to the GtGenomeNode interface?
>
> Sascha
>
> --
> Sascha Steinbiss
> Center for Bioinformatics
> University of Hamburg
> Bundesstr. 43
> 20146 Hamburg
> Germany
>
> Email:  steinbiss at zbh.uni-hamburg.de
> URL:    http://www.zbh.uni-hamburg.de/steinbiss
> Phone:  +49 (40) 42838 7322
> FAX:    +49 (40) 42838 7312
>
> _______________________________________________
> gt-users mailing list
> gt-users at genometools.org
> http://genometools.org/mailman/listinfo/gt-users
>

i'd use this. i've been stuffing stuff strings in the attributes, but
being able to have arbitrary objects would be even better.


More information about the gt-users mailing list