Details
struct GdaDataModelPrivate
struct GdaDataModelPrivate; |
gda_data_model_changed ()
void gda_data_model_changed (GdaDataModel *model); |
Notify listeners of the given data model object of changes
in the underlying data. Listeners usually will connect
themselves to the "changed" signal in the GdaDataModel
class, thus being notified of any new data being appended
or removed from the data model.
gda_data_model_freeze ()
void gda_data_model_freeze (GdaDataModel *model); |
Disable notifications of changes on the given data model. To
re-enable notifications again, you should call the
gda_data_model_thaw function.
gda_data_model_thaw ()
void gda_data_model_thaw (GdaDataModel *model); |
Re-enable notifications of changes on the given data model.
gda_data_model_get_n_rows ()
gint gda_data_model_get_n_rows (GdaDataModel *model); |
Return the number of rows in the given data model.
gda_data_model_get_n_columns ()
gint gda_data_model_get_n_columns (GdaDataModel *model); |
Return the number of columns in the given data model.
gda_data_model_describe_column ()
Query the underlying data model implementation for a description
of a given column. That description is returned in the form of
a GdaFieldAttributes structure, which contains all the information
about the given column in the data model.
gda_data_model_get_column_title ()
const gchar* gda_data_model_get_column_title
(GdaDataModel *model,
gint col); |
Return the title for the given column in a data model object.
gda_data_model_set_column_title ()
void gda_data_model_set_column_title (GdaDataModel *model,
gint col,
const gchar *title); |
gda_data_model_get_value_at ()
const GdaValue* gda_data_model_get_value_at (GdaDataModel *model,
gint col,
gint row); |
Retrieve the data stored in the given position (identified by
the col and row parameters) on a data model.
This is the main function for accessing data in a model.
gda_data_model_to_comma_separated ()
gchar* gda_data_model_to_comma_separated
(GdaDataModel *model); |
Convert the given model into a comma-separated series of rows.
gda_data_model_to_tab_separated ()
gchar* gda_data_model_to_tab_separated (GdaDataModel *model); |
gda_data_model_to_xml ()
gchar* gda_data_model_to_xml (GdaDataModel *model,
gboolean standalone); |