| libgnomedbmm Reference Documentation |
Inheritance diagram for Gnome::Db::DataStore:

Public Member Functions | ||||
| bool | append (Gtk::TreeModel::iterator& iter) | |||
| Appends a new row. | ||||
| void | erase (const Gtk::TreeModel::iterator& iter) | |||
| Marks the row pointed by iter to be deleted. | ||||
| bool | get_iter_from_values (Gtk::TreeModel::iterator& iter, const Glib::SListHandle<Gda::Value>& values, const Glib::ArrayHandle<int>& cols_index) const | |||
| Sets iter to the first row where all the values in values at the columns identified at cols_index match. | ||||
| Glib::RefPtr<const Gda::DataProxy> | get_proxy () const | |||
| ||||
| Glib::RefPtr<Gda::DataProxy> | get_proxy () | |||
| ||||
| int | get_row_from_iter (const Gtk::TreeModel::iterator& iter) const | |||
| Get the number of the row represented by iter. | ||||
| const GnomeDbDataStore* | gobj () const | |||
| Provides access to the underlying C GObject. | ||||
| GnomeDbDataStore* | gobj () | |||
| Provides access to the underlying C GObject. | ||||
| GnomeDbDataStore* | gobj_copy () | |||
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | ||||
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gda::DataModel >> | property_model () const | |||
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | ||||
| Glib::PropertyProxy_ReadOnly< bool > | property_prepend_null_entry () const | |||
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | ||||
| Glib::PropertyProxy<bool> | property_prepend_null_entry () | |||
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | ||||
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gda::DataProxy >> | property_proxy () const | |||
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | ||||
| bool | set_value (const Gtk::TreeModel::iterator& iter, int col, const Gda::Value& value) | |||
| Stores a value in the store data model. | ||||
| void | unerase (const Gtk::TreeModel::iterator& iter) | |||
| Remove the "to be deleted" mark the row pointed by iter , if it existed. | ||||
| virtual | ~DataStore () | |||
Static Public Member Functions | ||||
| static Glib::RefPtr<DataStore> | create (const Glib::RefPtr<Gda::DataModel>& model) | |||
Protected Member Functions | ||||
| DataStore (const Glib::RefPtr<Gda::DataModel>& model) | ||||
Related Functions | ||||
| (Note that these are not member functions.) | ||||
| Glib::RefPtr<Gnome::Db::DataStore> | wrap (GnomeDbDataStore* object, bool take_copy=false) | |||
| ||||
Internally, a Gda::DataProxy is used so it is possible to adjust the range of displayed data using that object.
Specifically, for a Gda::DataModel object containing nb_cols columns,the DataStore object provides the following columns, for a given row:
| virtual Gnome::Db::DataStore::~DataStore | ( | ) | [virtual] |
| Gnome::Db::DataStore::DataStore | ( | const Glib::RefPtr< Gda::DataModel > & | model | ) | [explicit, protected] |
| bool Gnome::Db::DataStore::append | ( | Gtk::TreeModel::iterator & | iter | ) |
Appends a new row.
| iter | An unset Gtk::TreeIter to set to the appended row. |
true if no error occurred. | static Glib::RefPtr<DataStore> Gnome::Db::DataStore::create | ( | const Glib::RefPtr< Gda::DataModel > & | model | ) | [static] |
| void Gnome::Db::DataStore::erase | ( | const Gtk::TreeModel::iterator & | iter | ) |
Marks the row pointed by iter to be deleted.
| iter | The considered row. |
| bool Gnome::Db::DataStore::get_iter_from_values | ( | Gtk::TreeModel::iterator & | iter, | |
| const Glib::SListHandle< Gda::Value > & | values, | |||
| const Glib::ArrayHandle< int > & | cols_index | |||
| ) | const |
Sets iter to the first row where all the values in values at the columns identified at cols_index match.
If the row can't be identified, then the contents of iter is not modified.
NOTE: the cols_index array MUST contain a column index for each value in values
| iter | An unset Gtk::TreeIter to set to the requested row. | |
| values | A list of G::Value values. | |
| cols_index | An array of int containing the column number to match each value of values . |
true if the row has been identified iter was set. | Glib::RefPtr<const Gda::DataProxy> Gnome::Db::DataStore::get_proxy | ( | ) | const |
| Glib::RefPtr<Gda::DataProxy> Gnome::Db::DataStore::get_proxy | ( | ) |
| int Gnome::Db::DataStore::get_row_from_iter | ( | const Gtk::TreeModel::iterator & | iter | ) | const |
Get the number of the row represented by iter.
| iter | A valid Gtk::TreeIter. |
| const GnomeDbDataStore* Gnome::Db::DataStore::gobj | ( | ) | const [inline] |
| GnomeDbDataStore* Gnome::Db::DataStore::gobj | ( | ) | [inline] |
| GnomeDbDataStore* Gnome::Db::DataStore::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gda::DataModel> > Gnome::Db::DataStore::property_model | ( | ) | const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly<bool> Gnome::Db::DataStore::property_prepend_null_entry | ( | ) | const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy<bool> Gnome::Db::DataStore::property_prepend_null_entry | ( | ) |
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gda::DataProxy> > Gnome::Db::DataStore::property_proxy | ( | ) | const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| bool Gnome::Db::DataStore::set_value | ( | const Gtk::TreeModel::iterator & | iter, | |
| int | col, | |||
| const Gda::Value & | value | |||
| ) |
Stores a value in the store data model.
| iter | The considered row. | |
| col | The considered column. | |
| value | The value to store (gets copied). |
true on succes. | void Gnome::Db::DataStore::unerase | ( | const Gtk::TreeModel::iterator & | iter | ) |
Remove the "to be deleted" mark the row pointed by iter , if it existed.
| iter | The considered row. |
| Glib::RefPtr<Gnome::Db::DataStore> wrap | ( | GnomeDbDataStore * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
| object | The C instance |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |