00001
00002
00003 #ifndef _LIBGDAMM_DATAMODELARRAY_H
00004 #define _LIBGDAMM_DATAMODELARRAY_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <glibmm/object.h>
00031 #include <libgdamm/datamodelrow.h>
00032
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GdaDataModelArray GdaDataModelArray;
00036 typedef struct _GdaDataModelArrayClass GdaDataModelArrayClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace Gda
00044 { class DataModelArray_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace Gda
00051 {
00052
00058 class DataModelArray
00059 : public DataModelRow
00060 {
00061
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063
00064 public:
00065 typedef DataModelArray CppObjectType;
00066 typedef DataModelArray_Class CppClassType;
00067 typedef GdaDataModelArray BaseObjectType;
00068 typedef GdaDataModelArrayClass BaseClassType;
00069
00070 private: friend class DataModelArray_Class;
00071 static CppClassType datamodelarray_class_;
00072
00073 private:
00074
00075 DataModelArray(const DataModelArray&);
00076 DataModelArray& operator=(const DataModelArray&);
00077
00078 protected:
00079 explicit DataModelArray(const Glib::ConstructParams& construct_params);
00080 explicit DataModelArray(GdaDataModelArray* castitem);
00081
00082 #endif
00083
00084 public:
00085 virtual ~DataModelArray();
00086
00087 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00088 static GType get_type() G_GNUC_CONST;
00089 static GType get_base_type() G_GNUC_CONST;
00090 #endif
00091
00093 GdaDataModelArray* gobj() { return reinterpret_cast<GdaDataModelArray*>(gobject_); }
00094
00096 const GdaDataModelArray* gobj() const { return reinterpret_cast<GdaDataModelArray*>(gobject_); }
00097
00099 GdaDataModelArray* gobj_copy();
00100
00101 private:
00102
00103 protected:
00104 explicit DataModelArray(int cols);
00105
00106 public:
00107
00108 static Glib::RefPtr<DataModelArray> create(int cols);
00109
00110
00117 void set_n_columns(int cols);
00118
00121 void clear();
00122
00123
00124 public:
00125
00126 public:
00127
00128 #ifdef GLIBMM_VFUNCS_ENABLED
00129 #endif //GLIBMM_VFUNCS_ENABLED
00130
00131 protected:
00132
00133 #ifdef GLIBMM_VFUNCS_ENABLED
00134 #endif //GLIBMM_VFUNCS_ENABLED
00135
00136
00137 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00138 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00139
00140
00141 };
00142
00143 }
00144 }
00145
00146
00147 namespace Glib
00148 {
00154 Glib::RefPtr<Gnome::Gda::DataModelArray> wrap(GdaDataModelArray* object, bool take_copy = false);
00155 }
00156
00157
00158 #endif
00159