parameterlist.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_PARAMETERLIST_H
00004 #define _LIBGDAMM_PARAMETERLIST_H
00005 
00006 #include <glibmm.h>
00007 
00008 /* $Id: parameterlist.hg,v 1.2 2004/04/05 17:14:58 murrayc Exp $ */
00009 // -*- C++ -*- //
00010 
00011 /* parameterlist.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/object.h>
00031 #include <libgdamm/parameter.h>
00032 
00033 
00034 namespace Gnome
00035 {
00036 
00037 namespace Gda
00038 {
00039 
00040 class ParameterList
00041 {
00042   public:
00043 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00044   typedef ParameterList CppObjectType;
00045   typedef GdaParameterList BaseObjectType;
00046 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00047 
00048   ParameterList();
00049 
00050   // Use make_a_copy=true when getting it directly from a struct.
00051   explicit ParameterList(GdaParameterList* castitem, bool make_a_copy = false);
00052 
00053   ParameterList(const ParameterList& src);
00054   ParameterList& operator=(const ParameterList& src);
00055 
00056   ~ParameterList();
00057 
00058   GdaParameterList*       gobj()       { return gobject_; }
00059   const GdaParameterList* gobj() const { return gobject_; }
00060 
00062   GdaParameterList* gobj_copy() const;
00063 
00064 protected:
00065   GdaParameterList* gobject_;
00066 
00067 private:
00068 
00069 public:
00070   
00071   operator bool() const;
00072 
00073   void add_parameter(const Parameter& param);
00074   
00075 
00076   //TODO: Use ListHandle:
00077   
00078   GList* get_names();
00079   
00080   
00081   Parameter find(const Glib::ustring& name) const;
00082   
00083   void clear();
00084   
00085   guint get_length() const;
00086 
00087 
00088 };
00089 
00090 } // namespace Gda
00091 } // namespace Gnome
00092 
00093 
00094 namespace Glib
00095 {
00096 
00102 Gnome::Gda::ParameterList wrap(GdaParameterList* object, bool take_copy = false);
00103 
00104 } // namespace Glib
00105 
00106 #endif /* _LIBGDAMM_PARAMETERLIST_H */
00107 

Generated on Thu Dec 1 00:00:02 2005 for libgdamm by  doxygen 1.4.5