/* ======== IGeoS ===== Distribition full ===== IGeoS ========= ** ** templ1e_ep.C : Created by 'seisweb' on Wed Apr 1 17:31:52 2020 ** ** Product : IGeoS - Integrated Geoscience Software ** ** Description : System for seismic, well log, and potential-field data analysis ** ** =================== Limited License: =================================== ** ** This software is provided free under the following terms and conditions: ** ** 1. Permission to use, copy, and modify this software ** for non-commercial purposes without fee is hereby granted, provided ** that this copyright notice, the warranty disclaimer, and this ** permission notice appear in all copies. ** ** 2. Distribution of this software or any part of it "bundled" in with ** any product is considered to be a 'commercial purpose'. ** ** 3. Any new or adapted code developed to operate as a part of this ** software shall be contributed to the authors and distributed under ** the same license. ** ** ================== Warranty Disclaimer: ================================ ** ** This software is provided "as is", with no support and without ** obligation on the part of the author to assist in its use, correction, ** modification, or enhancement. No guarantees or warranties, ** either express or implied, and regarding the accuracy, safety, or ** fitness for any particular purpose are provided by any contributor ** to this software package. ** ** ======== IGeoS ===== Distribition full ===== IGeoS ========= */ /* ========= S - I - A === S - I - A === S - I - A === S - I - A ========== ** ** templ1e_ep.C: Created by 'seisweb' on Fri Oct 20 19:19:50 2006 ** This file is a part of SIA distribution 'full' ** ** Copyright (c) 1995-2006, Igor Morozov, all rights reserved ** ** =================== Limited License: =================================== ** This software is provided free under the following terms and conditions: ** ** 1. Permission to use, copy, and modify this software ** for non-commercial purposes without fee is hereby granted, provided ** that this copyright notice, the warranty disclaimer, and this ** permission notice appear in all copies. ** ** 2. Distribution of this software or any part of it "bundled" in with ** any product is considered to be a 'commercial purpose'. ** ** 3. Any new or adapted code developed to operate as a part of this ** software shall be contributed to the authors and distributed under ** the same license. ** ** ================== Warranty Disclaimer: ================================ ** This software is provided "as is", with no support and without ** obligation on the part of the author to assist in its use, correction, ** modification, or enhancement. No guarantees or warranties, ** either express or implied, and regarding the accuracy, safety, or ** fitness for any particular purpose are provided by any contributor ** to this software package. ** ** ========= S - I - A ========== S - I - A ========== S - I - A ========== */ /* templ1e_ep.C */ //#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 }