Row

Description

Constructors

this
this(GdaRow* gdaRow)

Sets our main struct and passes it to the parent class

this
this(DataModel model, int count)

Creates a GdaRow which can hold count GdaValue.

this
this(DataModel model, GList* values)

Creates a GdaRow from a list of GdaValue's. These GdaValue's are value-copied and the user are still resposible for freeing them.

Members

Functions

copy
Row copy()

Creates a new GdaRow from an existing one.

free
void free()

Deallocates all memory associated to a GdaRow.

getId
string getId()

Returns the unique identifier for this row. This identifier is assigned by the different providers, to uniquely identify rows returned to clients. If there is no ID, this means that the row has not been created by a provider, or that it the provider cannot identify it (ie, modifications to it won't take place into the database).

getLength
int getLength()
getModel
DataModel getModel()

Gets the GdaDataModel the given GdaRow belongs to.

getNumber
int getNumber()

Gets the number of the given row, that is, its position in its containing data model.

getRowStruct
GdaRow* getRowStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

getValue
Value getValue(int num)

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

setId
void setId(string id)

Assigns a new identifier to the given row. This function is usually called by providers.

setNumber
void setNumber(int number)

Sets the row number for the given row.

Static functions

getType
GType getType()

Variables

gdaRow
GdaRow* gdaRow;

the main Gtk struct

Meta