g_type_from_string
Description:
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:
- "int" for G_TYPE_INT
- "uint" for G_TYPE_UINT
- "int64" for G_TYPE_INT64
- "uint64" for G_TYPE_UINT64
- "char" for G_TYPE_CHAR
- "uchar" for G_TYPE_UCHAR
- "short" for GDA_TYPE_SHORT
- "ushort" for GDA_TYPE_USHORT
- "string" for G_TYPE_STRING
- "date" for G_TYPE_DATE
- "time" for GDA_TYPE_TIME
- "timestamp" for GDA_TYPE_TIMESTAMP
- "boolean" for G_TYPE_BOOLEAN
- "blob" for GDA_TYPE_BLOB
- "binary" for GDA_TYPE_BINARY
- "null" for GDA_TYPE_NULL
Parameters:
str |
the name of a Type, as returned by g_type_to_string. |
Returns:
the Type represented by the given |
Namespace: Gda
Package: libgda-5.0