xmlstorage.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_XMLSTORAGE_H
00004 #define _LIBGDAMM_XMLSTORAGE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* xmlstorage.h
00012  *
00013  * Copyright 2003 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/interface.h>
00031 #include <libgda/gda-xml-storage.h>
00032 
00033 
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GdaXmlStorage GdaXmlStorage;
00036 typedef struct _GdaXmlStorageClass GdaXmlStorageClass;
00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 namespace Gda
00044 { class XmlStorage_Class; } // namespace Gda
00045 
00046 } // namespace Gnome
00047 namespace Gnome
00048 {
00049 
00050 namespace Gda
00051 {
00052 
00057 class XmlStorage : public Glib::Interface
00058 {
00059   
00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00061 
00062 public:
00063   typedef XmlStorage CppObjectType;
00064   typedef XmlStorage_Class CppClassType;
00065   typedef GdaXmlStorage BaseObjectType;
00066   typedef GdaXmlStorageIface BaseClassType;
00067 
00068 private:
00069   friend class XmlStorage_Class;
00070   static CppClassType xmlstorage_class_;
00071 
00072   // noncopyable
00073   XmlStorage(const XmlStorage&);
00074   XmlStorage& operator=(const XmlStorage&);
00075 
00076 protected:
00077   XmlStorage(); // you must derive from this class
00078   explicit XmlStorage(GdaXmlStorage* castitem);
00079 
00080 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00081 
00082 public:
00083   virtual ~XmlStorage();
00084 
00085   static void add_interface(GType gtype_implementer);
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   GdaXmlStorage*       gobj()       { return reinterpret_cast<GdaXmlStorage*>(gobject_); }
00094 
00096   const GdaXmlStorage* gobj() const { return reinterpret_cast<GdaXmlStorage*>(gobject_); }
00097 
00098 private:
00099 
00100 public:
00101 
00102   
00107   Glib::ustring get_xml_id() const;
00108   
00114 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00115   xmlNodePtr save_to_xml() const;
00116 #else
00117   xmlNodePtr save_to_xml(std::auto_ptr<Glib::Error>& error) const;
00118 #endif //GLIBMM_EXCEPTIONS_ENABLED
00119 
00120   
00128 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00129   bool load_from_xml(xmlNodePtr node);
00130 #else
00131   bool load_from_xml(xmlNodePtr node, std::auto_ptr<Glib::Error>& error);
00132 #endif //GLIBMM_EXCEPTIONS_ENABLED
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::XmlStorage> wrap(GdaXmlStorage* object, bool take_copy = false);
00166 
00167 } // namespace Glib
00168 
00169 
00170 #endif /* _LIBGDAMM_XMLSTORAGE_H */
00171 

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