Re: [gnome-db] GValue and GdaValue implementation
- From: Daniel Morgan <danielmorgan verizon net>
- To: Daniel Espinosa <esodan gmail com>
- Cc: gnome-db-list gnome org
- Subject: Re: [gnome-db] GValue and GdaValue implementation
- Date: Mon, 02 May 2005 22:06:38 -0400
Just an idea...
Could libgda be modified to allow GDA# to more easily get/set GDA values
by providing helper functions that does not use unions?
Or maybe you could create glue library like GTK# has?
On Mon, 2005-05-02 at 19:45 -0500, Daniel Espinosa wrote:
> As we know, the implementation of Gda# in Mono is stoped becouse a bug
> in GdaValue, and the reason is that the code parser of gtk-sharp don't
> parse Unions (may becouse unions don't exist in C#).
>
> Then, to make GdaValue work in Mono, and may be work better in other
> languages, I began to work in a implementation of GdaValue using
> GValue as a container.
>
> In the work I find that you need that a value stored in GValue, must
> have a GTypeInfo, and for a fundamental types (not objects, as far I
> know), you need GTypeValueTable, in order to be handle correctly by
> GValue functions.
>
> For types like GdaTime, GdaDate and so on, I derived this ones from
> GObject, then the GValue works well (I tested it).
>
> For types like gint64, gchar and other with a G_TYPE_* associated, the
> GValue works well, but this one are fundamental types (as far I know,
> not too easy to implement in the GType system), but this is no problem
> becouse have a valid GType and can be handle by GValue's functions.
>
> But there exist types like: gshort, gushort, gchar (as tinyshort) and
> guchar (as tinyushort), that don't have a G_TYPE_* value associated,
> the must need implemented. Becouse this is not a easy work, I want to
> know if this types of values, is stricted used by the API and
> providers, if so to begean to work in implementing as GType valid
> implementation in order to use GValue.
> _______________________________________________
> gnome-db-list mailing list
> gnome-db-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-db-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]