parameter.h
Go to the documentation of this file.00001
00002
00003 #ifndef _LIBGDAMM_PARAMETER_H
00004 #define _LIBGDAMM_PARAMETER_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <libgdamm/value.h>
00031 #include <glibmm/object.h>
00032 #include <libgda/gda-parameter.h>
00033
00034
00035 namespace Gnome
00036 {
00037
00038 namespace Gda
00039 {
00040
00041 class Parameter
00042 {
00043 public:
00044 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00045 typedef Parameter CppObjectType;
00046 typedef GdaParameter BaseObjectType;
00047 #endif
00048
00049 Parameter();
00050
00051
00052 explicit Parameter(GdaParameter* castitem, bool make_a_copy = false);
00053
00054 Parameter(const Parameter& src);
00055 Parameter& operator=(const Parameter& src);
00056
00057 ~Parameter();
00058
00059 GdaParameter* gobj() { return gobject_; }
00060 const GdaParameter* gobj() const { return gobject_; }
00061
00063 GdaParameter* gobj_copy() const;
00064
00065 protected:
00066 GdaParameter* gobject_;
00067
00068 private:
00069
00070
00071 public:
00072
00073
00074 Parameter(const Glib::ustring& name, const Value& value);
00075
00076 Parameter(const Glib::ustring& name, bool value);
00077
00078 Parameter(const Glib::ustring& name, gdouble value);
00079
00080 Parameter(const Glib::ustring& name, const Glib::RefPtr<Glib::Object>& value);
00081
00082 Parameter(const Glib::ustring& name, const Glib::ustring& value);
00083
00084
00085 Glib::ustring get_name() const;
00086
00087 void set_name(const Glib::ustring& name);
00088
00089
00090 Value get_value() const;
00091
00092
00093 void set_value(const Value& value);
00094
00095
00096 };
00097
00098 }
00099 }
00100
00101
00102 namespace Glib
00103 {
00104
00110 Gnome::Gda::Parameter wrap(GdaParameter* object, bool take_copy = false);
00111
00112 }
00113
00114 #endif
00115