OpendTect-6_4  6.4
seisjobexecprov.h
Go to the documentation of this file.
1 #ifndef seisjobexecprov_h
2 #define seisjobexecprov_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: April 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "bufstring.h"
17 #include "uistring.h"
18 #include "multiid.h"
19 #include "ranges.h"
20 #include "sets.h"
21 #include "uistring.h"
22 #include <iosfwd>
23 class IOObj;
24 class Executor;
25 class CtxtIOObj;
26 class JobRunner;
27 class JobDescProv;
28 class Seis2DDataSet;
29 
51 { mODTextTranslationClass(SeisJobExecProv);
52 public:
53 
54  SeisJobExecProv(const char* prognm,const IOPar&);
55  virtual ~SeisJobExecProv();
56 
57  bool isRestart() const { return isRestart(iopar_); }
58  inline uiString errMsg() const { return errmsg_; }
59  const IOPar& pars() const { return iopar_; }
60 
61  JobRunner* getRunner( int nrinlperjob );
62  Executor* getPostProcessor();
63  bool removeTempSeis();
64 
65  bool emitLSFile(const char*) const;
67  void preparePreSet(IOPar&,const char*) const;
68 
69  const MultiID& outputID() const { return seisoutid_; }
70 
71  static BufferString getDefTempStorDir(const char* storpth=0);
72  static const char* outputKey(const IOPar&);
73 
74  static const char* sKeySeisOutIDKey();
75  static const char* sKeyOutputLS();
76  static const char* sKeyWorkLS();
77 
78  static bool isRestart(const IOPar&);
79 
80 protected:
81 
85  bool is2d_;
90  mutable uiString errmsg_;
94 
95 
96  JobDescProv* mk2DJobProv();
97  JobDescProv* mk3DJobProv(int ninlperjob);
98  void getMissingLines(TypeSet<int>&) const;
99  MultiID tempStorID() const;
100 
101 };
102 
103 
104 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
Definition: ioobj.h:58
const MultiID & outputID() const
Definition: seisjobexecprov.h:69
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BufferString seisoutkey_
Definition: seisjobexecprov.h:86
Definition: uistring.h:89
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Definition: ctxtioobj.h:142
int nrrunners_
Definition: seisjobexecprov.h:91
IOPar & outioobjpars_
Definition: seisjobexecprov.h:83
const BufferString progname_
Definition: seisjobexecprov.h:89
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Interface for providing parameter files for jobs (job descriptions). Two implementations are pre-cook...
Definition: jobdescprov.h:27
Provides job runners and postprocessor for seismic processing.
Definition: seisjobexecprov.h:50
MultiID tmpstorid_
Definition: seisjobexecprov.h:88
const IOPar & pars() const
Definition: seisjobexecprov.h:59
Seis2DDataSet * outds_
Definition: seisjobexecprov.h:93
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Runs all jobs defined by JobDescProv.
Definition: jobrunner.h:54
uiString errMsg() const
Definition: seisjobexecprov.h:58
IOPar & iopar_
Definition: seisjobexecprov.h:82
BufferString errmsg_
Definition: horizontracker.h:119
bool isRestart() const
Definition: seisjobexecprov.h:57
CtxtIOObj & ctio_
Definition: seisjobexecprov.h:84
MultiID seisoutid_
Definition: seisjobexecprov.h:87
bool is2d_
Definition: seisjobexecprov.h:85
Set of 2D lines comparable with 3D seismic cube.
Definition: seis2ddata.h:37
Compound key consisting of ints.
Definition: multiid.h:25
uiString errmsg_
Definition: seisjobexecprov.h:90
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
StepInterval< int > todoinls_
Definition: seisjobexecprov.h:92

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019