datamodelhash.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_DATAMODELHASH_H
00004 #define _LIBGDAMM_DATAMODELHASH_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* datamodelhash.h
00012  *
00013  * Copyright 2007 libgdamm Development Team
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 namespace Gda
00044 { class DataModelHash_Class; } // namespace Gda
00045 
00046 } // namespace Gnome
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   //TODO: properties, signals, vfuncs
00133 
00134 
00135 public:
00136 
00137 public:
00138   //C++ methods used to invoke GTK+ virtual functions:
00139 #ifdef GLIBMM_VFUNCS_ENABLED
00140 #endif //GLIBMM_VFUNCS_ENABLED
00141 
00142 protected:
00143   //GTK+ Virtual Functions (override these to change behaviour):
00144 #ifdef GLIBMM_VFUNCS_ENABLED
00145 #endif //GLIBMM_VFUNCS_ENABLED
00146 
00147   //Default Signal Handlers::
00148 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00149 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00150 
00151 
00152 };
00153 
00154 } // namespace Gda
00155 } // namespace Gnome
00156 
00157 
00158 namespace Glib
00159 {
00165   Glib::RefPtr<Gnome::Gda::DataModelHash> wrap(GdaDataModelHash* object, bool take_copy = false);
00166 }
00167 
00168 
00169 #endif /* _LIBGDAMM_DATAMODELHASH_H */
00170 

Generated on Sat Feb 10 20:06:25 2007 for libgdamm by  doxygen 1.4.7