row.h
Go to the documentation of this file.00001
00002
00003 #ifndef _LIBGDAMM_ROW_H
00004 #define _LIBGDAMM_ROW_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <libgdamm/value.h>
00032
00033
00034
00035 #include <libgda/gda-data-model.h>
00036
00037 namespace Gnome
00038 {
00039
00040 namespace Gda
00041 {
00042
00043 class DataModel;
00044 class Value;
00045
00046 class Row
00047 {
00048 public:
00049 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00050 typedef Row CppObjectType;
00051 typedef GdaRow BaseObjectType;
00052 #endif
00053
00054 Row();
00055
00056
00057 explicit Row(GdaRow* castitem, bool make_a_copy = false);
00058
00059 Row(const Row& src);
00060 Row& operator=(const Row& src);
00061
00062 ~Row();
00063
00064 GdaRow* gobj() { return gobject_; }
00065 const GdaRow* gobj() const { return gobject_; }
00066
00068 GdaRow* gobj_copy() const;
00069
00070 protected:
00071 GdaRow* gobject_;
00072
00073 private:
00074
00075
00076 public:
00077
00078 Row(const Glib::RefPtr<DataModel>& model, int count);
00079
00080 Row(const Glib::RefPtr<DataModel>& model, const GList *values);
00081
00082
00083 Glib::RefPtr<DataModel> get_model();
00084
00085 Glib::RefPtr<const DataModel> get_model() const;
00086
00087
00088 int get_number() const;
00089
00090 void set_number(int number);
00091
00092 Glib::ustring get_id() const;
00093
00094 void set_id(const Glib::ustring& id);
00095
00096
00097
00098
00099 Value get_value(int num) const;
00100
00101
00102 int get_length() const;
00103
00104
00105 };
00106
00107 }
00108 }
00109
00110
00111 namespace Glib
00112 {
00113
00119 Gnome::Gda::Row wrap(GdaRow* object, bool take_copy = false);
00120
00121 }
00122
00123 #endif
00124