gnomemm r2016 - in libgdamm/trunk: . libgda/src
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r2016 - in libgdamm/trunk: . libgda/src
- Date: Mon, 26 Jan 2009 16:53:35 +0000 (UTC)
Author: jhs
Date: Mon Jan 26 16:53:35 2009
New Revision: 2016
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2016&view=rev
Log:
2009-01-26 Johannes Schmid <jschmid openismus com>
* libgda/src/set.ccg:
* libgda/src/set.hg:
Added add_holder(id, value) as convenience shortcut
Modified:
libgdamm/trunk/ChangeLog
libgdamm/trunk/libgda/src/set.ccg
libgdamm/trunk/libgda/src/set.hg
Modified: libgdamm/trunk/libgda/src/set.ccg
==============================================================================
--- libgdamm/trunk/libgda/src/set.ccg (original)
+++ libgdamm/trunk/libgda/src/set.ccg Mon Jan 26 16:53:35 2009
@@ -34,6 +34,13 @@
return gda_set_set_holder_value (gobj(), id.c_str(), value);
}
+void Set::add_holder (const Glib::ustring& id, const Gda::Value& value)
+{
+ Glib::RefPtr<Holder> holder = Holder::create(value.get_value_type(), id);
+ holder->set_value(value);
+ add_holder(holder);
+}
+
} /* namespace Gda */
} /* namespace Gnome */
Modified: libgdamm/trunk/libgda/src/set.hg
==============================================================================
--- libgdamm/trunk/libgda/src/set.hg (original)
+++ libgdamm/trunk/libgda/src/set.hg Mon Jan 26 16:53:35 2009
@@ -68,6 +68,15 @@
_WRAP_METHOD(Glib::RefPtr<const Holder> get_holder(const Glib::ustring& holder_id) const, gda_set_get_holder, refreturn)
_WRAP_METHOD(void add_holder(const Glib::RefPtr<Holder>& holder), gda_set_add_holder)
+
+ /** Add a holder
+ *
+ * Convenience method to add a holder with value
+ * @param id Name of the holder
+ * @param value Value of the holder
+ */
+ void add_holder (const Glib::ustring& id, const Gda::Value& value);
+
_WRAP_METHOD(void remove_holder(const Glib::RefPtr<Holder>& holder), gda_set_remove_holder)
_WRAP_METHOD(void merge_with_set(const Glib::RefPtr<Set>& set_to_merge), gda_set_merge_with_set)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]