GdaPRow

GdaPRow — A row within the GdaPModel data model

Synopsis


#include <providers-support/gda-prow.h>

                    GdaPRow;
GdaPRow*            gda_prow_new                        (gint count);
gint                gda_prow_get_length                 (GdaPRow *prow);
GValue*             gda_prow_get_value                  (GdaPRow *prow,
                                                         gint num);

Description

Details

GdaPRow

typedef struct {
	GObject        object;
	GdaPRowPrivate *priv;
} GdaPRow;


gda_prow_new ()

GdaPRow*            gda_prow_new                        (gint count);

Creates a GdaPRow which can hold count GValue values.

The caller of this function is the only owner of a reference to the newly created GdaPRow object, even if model is not NULL (it is recommended to pass NULL as the model argument if this function is not called from within a GdaDataModel implementation).

count :

number of GValue in the new GdaPRow.

Returns :

a newly allocated GdaPRow object.

gda_prow_get_length ()

gint                gda_prow_get_length                 (GdaPRow *prow);

prow :

a GdaPRow.

Returns :

the number of columns that the prow has.

gda_prow_get_value ()

GValue*             gda_prow_get_value                  (GdaPRow *prow,
                                                         gint num);

Gets a pointer to a GValue stored in a GdaPRow.

This is a pointer to the internal array of values. Don't try to free or modify it!

prow :

a GdaPRow

num :

field index.

Returns :

a pointer to the GValue in the position num of prow.