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

omgmodellerplugininterface.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 OMGOMMODELLERPLUGININTERFACE_H
00021 #define OMGOMMODELLERPLUGININTERFACE_H
00022 
00023 //qt includes
00024 #include <QPluginLoader>//needed for the qt plugin macros
00025 //#include "qlogcallback.h"
00026 //forward declarations
00027 #include "omgalgorithm.h"
00028 #include "omgalgorithmset.h"
00029 #include "omgmodel.h"
00030 #include "omgpluginmessenger.h"
00031 #include <QString>
00032 #include <QStringList>
00033 #include <QMap>
00034 
00040 class OMG_LIB_EXPORT OmgModellerPluginInterface 
00041 {
00042 public:
00043   virtual ~OmgModellerPluginInterface() ;
00048   virtual QString createModel(OmgModel * thepModel)=0;
00053   virtual void  projectModel(OmgModel * thepModel)=0;
00054 
00060   virtual const QStringList getAlgorithmList()=0;
00067   virtual const OmgAlgorithmSet getAlgorithmSet()=0;
00076   virtual const QString getLayers(QString theBaseDir)=0;
00080   virtual const QString getName()=0;
00089   virtual const OmgPluginMessenger * getMessenger() ;
00094   virtual const QString getModelDefinition(QString theModelXml);
00095 
00096 protected:  
00099   OmgModellerPluginInterface() {};
00101   OmgPluginMessenger mMessenger;
00102   
00103 };
00104 
00105 
00106 // Declare plugin interfaces for Qt plugin loader
00107 Q_DECLARE_INTERFACE(OmgModellerPluginInterface, "org.openmodeller.OmgModellerPluginInterface/1.0")
00108 
00109 #endif
00110 

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