datamodelimport.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_DATAMODELIMPORT_H
00004 #define _LIBGDAMM_DATAMODELIMPORT_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* datamodelimport.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 _GdaDataModelImport GdaDataModelImport;
00036 typedef struct _GdaDataModelImportClass GdaDataModelImportClass;
00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 namespace Gda
00044 { class DataModelImport_Class; } // namespace Gda
00045 
00046 } // namespace Gnome
00047 namespace Gnome
00048 {
00049 
00050 namespace Gda
00051 {
00052 
00053 //TODO: This is presumably an alternative to using a database provider. If so, document it as such. murrayc.
00054 
00076 class DataModelImport
00077  : public DataModelRow
00078 {
00079   
00080 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00081 
00082 public:
00083   typedef DataModelImport CppObjectType;
00084   typedef DataModelImport_Class CppClassType;
00085   typedef GdaDataModelImport BaseObjectType;
00086   typedef GdaDataModelImportClass BaseClassType;
00087 
00088 private:  friend class DataModelImport_Class;
00089   static CppClassType datamodelimport_class_;
00090 
00091 private:
00092   // noncopyable
00093   DataModelImport(const DataModelImport&);
00094   DataModelImport& operator=(const DataModelImport&);
00095 
00096 protected:
00097   explicit DataModelImport(const Glib::ConstructParams& construct_params);
00098   explicit DataModelImport(GdaDataModelImport* castitem);
00099 
00100 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00101 
00102 public:
00103   virtual ~DataModelImport();
00104 
00105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00106   static GType get_type()      G_GNUC_CONST;
00107   static GType get_base_type() G_GNUC_CONST;
00108 #endif
00109 
00111   GdaDataModelImport*       gobj()       { return reinterpret_cast<GdaDataModelImport*>(gobject_); }
00112 
00114   const GdaDataModelImport* gobj() const { return reinterpret_cast<GdaDataModelImport*>(gobject_); }
00115 
00117   GdaDataModelImport* gobj_copy();
00118 
00119 private:
00120 
00121 protected:
00122   DataModelImport(const std::string& filename, bool random_access, const Glib::RefPtr<const ParameterList>& options);
00123   
00124 
00125   //TODO: What defines the size of data?
00126   DataModelImport(const gchar* data, bool random_access, const Glib::RefPtr<const ParameterList>& options);
00127   
00128 
00129   explicit DataModelImport(xmlNodePtr node);
00130   
00131 
00132 public:
00133   
00134   static Glib::RefPtr<DataModelImport> create(const std::string& filename, bool random_access, const Glib::RefPtr<const ParameterList>& options);
00135 
00136   
00137   static Glib::RefPtr<DataModelImport> create(const gchar* data, bool random_access, const Glib::RefPtr<const ParameterList>& options);
00138 
00139   
00140   static Glib::RefPtr<DataModelImport> create(xmlNodePtr node);
00141 
00142 
00143   //TODO: Use ListHandle or similar:
00144   
00149   GSList* get_errors();
00150 
00151   
00154   void clean_errors();
00155 
00156 
00157 public:
00158 
00159 public:
00160   //C++ methods used to invoke GTK+ virtual functions:
00161 #ifdef GLIBMM_VFUNCS_ENABLED
00162 #endif //GLIBMM_VFUNCS_ENABLED
00163 
00164 protected:
00165   //GTK+ Virtual Functions (override these to change behaviour):
00166 #ifdef GLIBMM_VFUNCS_ENABLED
00167 #endif //GLIBMM_VFUNCS_ENABLED
00168 
00169   //Default Signal Handlers::
00170 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00171 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00172 
00173 
00174 };
00175 
00176 } // namespace Gda
00177 } // namespace Gnome
00178 
00179 
00180 namespace Glib
00181 {
00187   Glib::RefPtr<Gnome::Gda::DataModelImport> wrap(GdaDataModelImport* object, bool take_copy = false);
00188 }
00189 
00190 
00191 #endif /* _LIBGDAMM_DATAMODELIMPORT_H */
00192 

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