/* templ1t_ep.C */ /*************************************************************************** SIA - system for advanced seismic data analysis Copyright (c) 1995-2004, I. B. Morozov ****************************************************************************/ #define DEBUG #include "templ1t.h" extern "C" { void *templ1t_init() { return new TEMPL1T; } } /*=== the name of the program for the GUI ====*/ CHARSTR TEMPL1T::module_name( boolean active ) { read_params(); return "Sample 1-trace process"; } /*================================================================= Constructor ==================================================================*/ TEMPL1T::TEMPL1T() : SIA_MODULE() { } void TEMPL1T::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 } /*========================================================================== Edit phase - called once to load the parameters of the tool ==========================================================================*/ int TEMPL1T::edit() { read_params(); // read module parameters return NORMAL_MODULE; // return status for a trace-in-trace-out module }