Table

Constructors

this
this(GdaTable* gdaTable)

Sets our main struct and passes it to the parent class

this
this(string name)

Creates a new GdaTable object, which is an in-memory representation of an entire table. It is mainly used by the GdaXmlDatabase class, but you can also use it in your applications for whatever you may need it.

this
this(string name, DataModel model, int addData)

Creates a GdaTable object from the given GdaDataModel. This is very useful to maintain an in-memory copy of a given recordset obtained from a database. This is also used when exporting data to a GdaXmlDatabase object.

Members

Functions

addDataFromModel
void addDataFromModel(DataModel model)

Adds data in the given table from the given model.

addField
void addField(FieldAttributes fa)

Adds a field to the given GdaTable.

getName
string getName()
getStruct
void* getStruct()

the main Gtk struct as a void*

getTableStruct
GdaTable* getTableStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
setName
void setName(string name)

Sets the name of the given GdaTable.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gdaTable
GdaTable* gdaTable;

the main Gtk struct

Inherited Members

From DataModelArray

gdaDataModelArray
GdaDataModelArray* gdaDataModelArray;

the main Gtk struct

getDataModelArrayStruct
GdaDataModelArray* getDataModelArrayStruct()
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*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
setNColumns
void setNColumns(int cols)

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

clear
void clear()

Frees all the rows inserted in model.

Meta