/* ======== IGeoS ===== Distribition full ===== IGeoS ========= ** ** templrd.h : 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 ========== ** ** templrd.h: Created by 'seisweb' on Fri Oct 20 19:19:52 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 ========== */ #ifndef MOD_TEMPLRD #define MOD_TEMPLRD #include "sia_module.C.h" struct TEMPLRD : public SIA_MODULE { TEMPLRD(); CHARSTR file_name; // string to hold the file name mask HEADER_PARAM param1; // parameter obtained from the job or trace // These parameters usually correspond to those // listed in .mpar file. // Rename and add more as needed ARRAY key; // arrays of trace selectors from the file (if needed) AHEADER key_header; // trace header used to mark the traces with diffrent // 'key' values // overloaded methods from SIA_MODULE // these methods are called by the job monitor when actions by the tool are required CHARSTR module_name( boolean active ); // name for GUI int edit(); // edit phase boolean process(); // process phase boolean operation( int type, int instruction, const char *param=NULL ); // interactive service private: int _count; // trace counter in the input file void read_params(); // read the parameters from the global list of job file // (this is a helper for Edit phase) boolean proc( int count ); // load one trace #count from the file(s) }; #endif