GreensFunction.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  * File:        ./GreensFunction.h
00003  * Author:      Ronni Grapenthin, Geophysical Institute, UAF
00004  * Created:     2008-02-19
00005  * Licence:     GPLv2
00006  *
00007  * #########################################################################
00008  *
00009  * CrusDe, simulation framework for crustal deformation studies
00010  * Copyright (C) 2007 Ronni Grapenthin
00011  *
00012  * This program is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU General Public License
00014  * as published by the Free Software Foundation; version 2
00015  * of the License.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00025  *
00026  ****************************************************************************/
00027 
00028 #ifndef _greens_function_bin_h
00029 #define _greens_function_bin_h
00030 
00031 #include "Plugin.h"
00032 #include "GreenPlugin.h"
00033 #include "constants.h"
00034 #include "config.h"
00035 #include <iostream>
00036 #include <cassert>
00037 #include <dlfcn.h>
00038 #include <map>
00039 
00040 using namespace std;
00041 
00051 class GreensFunction : public Plugin
00052 {
00053 
00054         private:
00055                 map<string, GreenPlugin*>::iterator  map_iter;
00056                 map<string, GreenPlugin*>            pl_green_map;
00057 
00059                 GreensFunction(const GreensFunction& x); 
00060 
00061         public:
00062                 GreensFunction(const string);  /* Constructor */
00063                 virtual ~GreensFunction();     /* Destructor */
00064                 
00065                 void setFirstJob();
00066                 bool nextJob();
00067                 bool isLastJob();
00068                 string job();
00069 
00070 //              virtual void selftest();
00071                 
00072                 /*plug - in interface*/
00073                 int getValueArrayAt(double**, int, int);
00074 
00075         void load(map<string, string>);
00076                 void unload() throw (LibHandleError);
00077                 void registerParameter();
00078                 void registerOutputFields();
00079                 void requestPlugins();
00080                 void init();
00081                 void release();
00082                 
00083 //              void selftest();
00084 
00085 
00086 };
00087 
00088 
00089 #endif // _load_function_bin_h

Generated on Sun Aug 31 13:18:59 2008 for CrusDe by  doxygen 1.5.0