00001
00002
00003 #ifndef _LIBGDAMM_DATAMODELHASH_H
00004 #define _LIBGDAMM_DATAMODELHASH_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 _GdaDataModelHash GdaDataModelHash;
00036 typedef struct _GdaDataModelHashClass GdaDataModelHashClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace Gda
00044 { class DataModelHash_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace Gda
00051 {
00052
00058 class DataModelHash
00059 : public DataModelRow
00060 {
00061
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063
00064 public:
00065 typedef DataModelHash CppObjectType;
00066 typedef DataModelHash_Class CppClassType;
00067 typedef GdaDataModelHash BaseObjectType;
00068 typedef GdaDataModelHashClass BaseClassType;
00069
00070 private: friend class DataModelHash_Class;
00071 static CppClassType datamodelhash_class_;
00072
00073 private:
00074
00075 DataModelHash(const DataModelHash&);
00076 DataModelHash& operator=(const DataModelHash&);
00077
00078 protected:
00079 explicit DataModelHash(const Glib::ConstructParams& construct_params);
00080 explicit DataModelHash(GdaDataModelHash* castitem);
00081
00082 #endif
00083
00084 public:
00085 virtual ~DataModelHash();
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 GdaDataModelHash* gobj() { return reinterpret_cast<GdaDataModelHash*>(gobject_); }
00094
00096 const GdaDataModelHash* gobj() const { return reinterpret_cast<GdaDataModelHash*>(gobject_); }
00097
00099 GdaDataModelHash* gobj_copy();
00100
00101 private:
00102
00103 protected:
00104 explicit DataModelHash(int cols);
00105
00106 public:
00107
00108 static Glib::RefPtr<DataModelHash> create(int cols);
00109
00110
00120 void set_n_columns(int cols);
00121
00124 void clear();
00125
00130 void insert_row(int rownum, const Glib::RefPtr<Row>& row);
00131
00132
00133
00134
00135 public:
00136
00137 public:
00138
00139 #ifdef GLIBMM_VFUNCS_ENABLED
00140 #endif //GLIBMM_VFUNCS_ENABLED
00141
00142 protected:
00143
00144 #ifdef GLIBMM_VFUNCS_ENABLED
00145 #endif //GLIBMM_VFUNCS_ENABLED
00146
00147
00148 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00149 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00150
00151
00152 };
00153
00154 }
00155 }
00156
00157
00158 namespace Glib
00159 {
00165 Glib::RefPtr<Gnome::Gda::DataModelHash> wrap(GdaDataModelHash* object, bool take_copy = false);
00166 }
00167
00168
00169 #endif
00170