parameter.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_PARAMETER_H
00004 #define _LIBGDAMM_PARAMETER_H
00005 
00006 #include <glibmm.h>
00007 
00008 /* $Id: parameter.hg,v 1.3 2004/04/23 11:14:49 murrayc Exp $ */
00009 // -*- C++ -*- //
00010 
00011 /* parameter.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 <libgdamm/value.h>
00031 #include <glibmm/object.h>
00032 #include <libgda/gda-parameter.h> //TODO: Patch libgda to use the struct _ technique.
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00048 
00049   Parameter();
00050 
00051   // Use make_a_copy=true when getting it directly from a struct.
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   //Parameter();
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 } // namespace Gda
00099 } // namespace Gnome
00100 
00101 
00102 namespace Glib
00103 {
00104 
00110 Gnome::Gda::Parameter wrap(GdaParameter* object, bool take_copy = false);
00111 
00112 } // namespace Glib
00113 
00114 #endif /* _LIBGDAMM_PARAMETER_H */
00115 

Generated on Sat Dec 31 18:34:52 2005 for libgdamm by  doxygen 1.4.5