Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

omgalgorithmparameter.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Tim Sutton   *
00003  *   tim@linfiniti.com   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef OMGALGORITHMPARAMETER_H
00021 #define OMGALGORITHMPARAMETER_H
00022 
00023 #include "omgserialisable.h"
00024 
00025 #include <QString>
00026 
00032 class OMG_LIB_EXPORT OmgAlgorithmParameter : public OmgSerialisable
00033 {
00034 public:
00035   OmgAlgorithmParameter();
00036   ~OmgAlgorithmParameter();
00037   OmgAlgorithmParameter(
00038     QString theId,
00039     QString theName,
00040     QString theDefault,
00041     QString theOverview,
00042     QString theDescription,
00043     QString theMinimum,
00044     QString theMaximum,
00045     QString theValue
00046     );
00047 
00048   //
00049   //Serialisable interface
00050   //
00051   
00059   QString toXml() const;
00064   bool fromXml(const QString theXml) ;
00065 
00075   QString toModelCreationXml() const;
00076 
00078   QString toString() const;
00079   //mutators
00080   
00081   void setId(QString theId);
00082   void setName(QString theName);
00083   void setType(QString theType);
00084   void setDefault(QString theDefault);
00085   void setOverview(QString theOverview);
00086   void setDescription(QString theDescription);
00087   void setMinimum(QString theMinimum);
00088   void setMaximum(QString theMaximum);
00090   void setValue(QString theValue);
00091 
00092 
00093   //accessors
00094   
00095   QString id() const;
00096   QString name() const ;
00097   QString type() const ;
00098   QString overview() const ;
00099   QString defaultValue() const ;
00100   QString description() const;
00101   QString minimum() const ;
00102   QString maximum() const ;
00103   QString value() const ;
00104  
00105 private:
00106   QString mId;
00107   QString mName;
00108   QString mType;
00109   QString mDefault;
00110   QString mOverview;
00111   QString mDescription;
00112   QString mMinimum;
00113   QString mMaximum;
00114   QString mValue;
00115 };
00116 
00117 #endif //OMGALGORITHMPARAMETER_H

Generated on Mon Apr 28 15:08:02 2008 for openModellerDesktop by  doxygen 1.4.1-20050210