00001 /*************************************************************************** 00002 * File: ./DataOutPlugin.h 00003 * Author: Ronni Grapenthin, NORVULK & HU-BERLIN 00004 * Created: 18.03.2007 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 _data_out_plugin_h 00029 #define _data_out_plugin_h 00030 00031 #include "Plugin.h" 00032 #include "constants.h" 00033 #include <iostream> 00034 #include <cassert> 00035 #include <dlfcn.h> 00036 00037 using namespace std; 00038 00039 class DataOutPlugin : public Plugin 00040 { 00041 00042 private: 00043 typedef double (*value_t)(double**, int, int); 00044 value_t func_value; /* Pointer to loaded routine */ 00045 00047 DataOutPlugin(const DataOutPlugin& x); 00048 00049 public: 00050 DataOutPlugin(const string=NULL); /* Constructor */ 00051 virtual ~DataOutPlugin(); /* Destructor */ 00052 00053 virtual void load(const string) throw (FileNotFound, LibHandleError); 00054 00055 /*plug - in interface*/ 00056 void setModelData(double**); 00057 void setMetaData(){}; 00058 00059 }; 00060 00061 #endif // _data_out_plugin_h