## GdaDataModelArray GdaDataModelArray — An implementation of GdaDataModel based on an array |

## Synopsis

                GdaDataModelArray;
    GdaDataModel* gda_data_model_array_new      (gint cols);
    GdaDataModel* gda_data_model_array_new_from_xml_node
                                                (xmlNodePtr node,
                                                 GError **error);
    void        gda_data_model_array_set_n_columns
                                                (GdaDataModelArray *model,
                                                 gint cols);
    void        gda_data_model_array_clear      (GdaDataModelArray *model);

## Object Hierarchy

      GObject
       +----GdaDataModelBase
             +----GdaDataModelArray
                   +----GdaSelect

## Implemented Interfaces

GdaDataModelArray implements GdaDataModel.

## Description

## Details

### GdaDataModelArray

    typedef struct _GdaDataModelArray GdaDataModelArray;

### gda_data_model_array_new ()

    GdaDataModel* gda_data_model_array_new      (gint cols);

`cols` : | number of columns for rows in this data model.
Returns : | a pointer to the newly created GdaDataModel.

### gda_data_model_array_new_from_xml_node ()

    GdaDataModel* gda_data_model_array_new_from_xml_node
                                                (xmlNodePtr node,
                                                 GError **error);

Creates a new GdaDataModel with the data stored in `node`

`node` : | an XML node representing a <data-array> tag
`error` : | a place to store errors or `NULL`
Returns : | a pointer to the newly created GdaDataModel, or `NULL` if an error occured

### gda_data_model_array_set_n_columns ()

    void        gda_data_model_array_set_n_columns
                                                (GdaDataModelArray *model,
                                                 gint cols);

Sets the number of columns for rows inserted in this model. `cols` must be greated than or equal to 0.

`model` : | the GdaDataModelArray.
`cols` : | number of columns for rows this data model should use.

### gda_data_model_array_clear ()

    void        gda_data_model_array_clear      (GdaDataModelArray *model);

Frees all the rows inserted in `model`.

`model` : | the model to clear.