/* templ1e_ep.C */ /*************************************************************************** SIA - system for advanced seismic data analysis Copyright (c) 1995-2004, I. B. Morozov ****************************************************************************/ #define DEBUG // enables debugging printouts below #include "templ1e.h" extern "C" { void *templ1e_init() // creates data object { return new TEMPL1E; } } /*================================================================= Constructor; reads the global list ==================================================================*/ TEMPL1E::TEMPL1E() : SIA_MODULE() { } void TEMPL1E::read_params() { /*--- read the parameters described in .mpar file ----*/ param1.read("PARAM1",REAL,0.0); // input header or constant value out_header.define("OUTHDR",REAL,FROM_JOB); // define an output header // with a user-specified name } CHARSTR TEMPL1E::module_name( boolean active ) { CHARSTR name( "Sample 1-ensemble process"); if ( active ) { read_params(); // modify 'name' using the parameters, if you like } return name; } /*================================================================= Edit phase - called to load the parameters of the tool ==================================================================*/ int TEMPL1E::edit() { #ifdef DEBUG DPRINTF("TEMPL1E::edit: START ENSEMBLE template"); // sample debugging message; note the DPRINTF macro #endif read_params(); // this reads the global list return EOF_MODULE; // return status for a End-of-file module }