00001
00002
00003 #ifndef _LIBGDAMM_BLOB_H
00004 #define _LIBGDAMM_BLOB_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
00031 #include <libgdamm/blobop.h>
00032 #include <libgda/gda-value.h>
00033
00034 namespace Gnome
00035 {
00036
00037 namespace Gda
00038 {
00039
00040
00041 class Blob
00042 {
00043 public:
00044 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00045 typedef Blob CppObjectType;
00046 typedef GdaBlob BaseObjectType;
00047
00048 static GType get_type() G_GNUC_CONST;
00049 #endif
00050
00051 Blob();
00052
00053 explicit Blob(const GdaBlob* gobject);
00054
00056 GdaBlob* gobj() { return &gobject_; }
00057
00059 const GdaBlob* gobj() const { return &gobject_; }
00060
00061 protected:
00062 GdaBlob gobject_;
00063
00064 private:
00065
00066
00067 public:
00068
00072 void set_op(const Glib::RefPtr<BlobOp>& blob);
00073
00080 Glib::ustring to_string(guint maxlen);
00081
00082
00083 };
00084
00085 }
00086
00087 }
00088
00089
00090 namespace Glib
00091 {
00092
00097 Gnome::Gda::Blob& wrap(GdaBlob* object);
00098
00103 const Gnome::Gda::Blob& wrap(const GdaBlob* object);
00104
00105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00106 template <>
00107 class Value<Gnome::Gda::Blob> : public Glib::Value_Boxed<Gnome::Gda::Blob>
00108 {};
00109 #endif
00110
00111 }
00112
00113
00114 #endif
00115