[libgdamm] Value: Added get/set_long().



commit 36dd2b2514c78f4662645517e9ab25f41f36f323
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue May 4 13:44:36 2010 +0200

    Value: Added get/set_long().
    
    * libgda/libgdamm/value.[h|cc]: Added get/set_long().

 ChangeLog                |    8 +++++++-
 libgda/libgdamm/value.cc |   10 ++++++++++
 libgda/libgdamm/value.h  |    4 ++++
 3 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 80edbda..94720fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-04  Murray Cumming  <murrayc murrayc com>
+
+	Value: Added get/set_long().
+
+	* libgda/libgdamm/value.[h|cc]: Added get/set_long().
+
 2010-04-27  David King  <davidk openismus com>
 
 	Add main page to Doxygen documentation
@@ -20,7 +26,7 @@
 
 2010-04-09  Armin Burgmeier  <armin arbur net>
 
-	SqlBuilder: Make definition and declaration of  add_cond() match
+	SqlBuilder: Make definition and declaration of add_cond() match
 
 	* libgda/src/sqlbuilder.ccg (add_cond): Fix function header signature
 	to match the declaration in the header (uint->guint), fixing the
diff --git a/libgda/libgdamm/value.cc b/libgda/libgdamm/value.cc
index 8a5374e..a995427 100644
--- a/libgda/libgdamm/value.cc
+++ b/libgda/libgdamm/value.cc
@@ -416,6 +416,16 @@ void Value::set(gushort val)
   gda_value_set_ushort(gobj(), val); 
 }
 
+glong Value::get_long() const
+{
+  return g_value_get_long(const_cast<GValue*>(gobj()));
+}
+
+void Value::set(glong val)
+{
+  g_value_set_long(gobj(), val); 
+}
+
 gulong Value::get_ulong() const
 {
   return g_value_get_ulong(const_cast<GValue*>(gobj()));
diff --git a/libgda/libgdamm/value.h b/libgda/libgdamm/value.h
index 7128272..e37979f 100644
--- a/libgda/libgdamm/value.h
+++ b/libgda/libgdamm/value.h
@@ -198,6 +198,10 @@ public:
   
   void set(gushort val);
 
+  glong get_long() const;
+  
+  void set(glong val);
+  
   gulong get_ulong() const;
   
   void set(gulong val);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]