g_type_from_string


Description:


public Type g_type_from_string (string str)

Converts a named type to ts GType type (also see the g_type_to_string function).

This function is a wrapper around the from_name function, but also recognizes some type synonyms such as: <itemizedlist> <listitem><para>"int" for G_TYPE_INT</para></listitem> <listitem><para>"uint" for G_TYPE_UINT</para></listitem> <listitem><para>"int64" for G_TYPE_INT64</para ></listitem> <listitem><para>"uint64" for G_TYPE_UINT64</para></listitem> <listitem><para>"char" for G_TYPE_CHAR</para></listitem> <listitem><para>"uchar" for G_TYPE_UCHAR</para></listitem> <listitem ><para>"short" for GDA_TYPE_SHORT</para></listitem> <listitem><para>"ushort" for GDA_TYPE_USHORT</para> </listitem> <listitem><para>"string" for G_TYPE_STRING</para></listitem> <listitem><para>"date" for G_TYPE_DATE</para></listitem> <listitem><para>"time" for GDA_TYPE_TIME</para></listitem> <listitem> <para>"timestamp" for G_TYPE_DATE_TIME</para></listitem> <listitem><para>"boolean" for G_TYPE_BOOLEAN</para ></listitem> <listitem><para>"blob" for GDA_TYPE_BLOB</para></listitem> <listitem><para>"binary" for GDA_TYPE_BINARY</para></listitem> <listitem><para>"null" for GDA_TYPE_NULL</para></listitem> < /itemizedlist>

Parameters:

str

the name of a Type, as returned by g_type_to_string.

Returns:

the Type represented by the given str, or INVALID if not found


Namespace: Gda
Package: libgda-6.0