gda-util

Name

gda-util -- 

Synopsis



const gchar* gda_type_to_string             (GdaType type);
GdaType     gda_type_from_string            (const gchar *str);
gchar*      gda_file_load                   (const gchar *uri);
gboolean    gda_file_save                   (const gchar *uri,
                                             const gchar *buffer,
                                             gint len);

Description

Details

gda_type_to_string ()

const gchar* gda_type_to_string             (GdaType type);

Return the string representing the given GdaType.


gda_type_from_string ()

GdaType     gda_type_from_string            (const gchar *str);


gda_file_load ()

gchar*      gda_file_load                   (const gchar *uri);

Loads a file, specified by the given uri, and returns the file contents as a string. The uri argument can specify any transfer method (file:, http:, ftp:, etc) supported by GnomeVFS on your system.

It is the caller's responsibility to free the returned value.


gda_file_save ()

gboolean    gda_file_save                   (const gchar *uri,
                                             const gchar *buffer,
                                             gint len);

Saves a chunk of data into a file. As libgda uses GnomeVFS for all its file access, this function allows you to save both to local files and to any other target supported by GnomeVFS.