00001
00002
00003 #ifndef _LIBGDAMM_XMLSTORAGE_H
00004 #define _LIBGDAMM_XMLSTORAGE_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/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
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace Gda
00044 { class XmlStorage_Class; }
00045
00046 }
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
00073 XmlStorage(const XmlStorage&);
00074 XmlStorage& operator=(const XmlStorage&);
00075
00076 protected:
00077 XmlStorage();
00078 explicit XmlStorage(GdaXmlStorage* castitem);
00079
00080 #endif
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
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::XmlStorage> wrap(GdaXmlStorage* object, bool take_copy = false);
00166
00167 }
00168
00169
00170 #endif
00171