OpendTect-6_4  6.4
uiclusterjobprov.h
Go to the documentation of this file.
1 #ifndef uiclusterjobprov_h
2 #define uiclusterjobprov_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Raman K Singh
8  Date: May 2009
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiiomod.h"
16 #include "uidialog.h"
17 #include "clusterjobdispatch.h"
18 #include "multiid.h"
19 
21 class uiGenInput;
22 class uiFileInput;
23 class uiLabel;
24 namespace Batch { class ClusterJobDispatcher; }
25 
26 
29 public:
30  uiClusterJobProv(uiParent* p,const IOPar& iop,
31  const char* prog,const char* parfnm);
33 
34  static const char* sKeySeisOutIDKey();
35  static const char* sKeyOutputID();
36 
37 protected:
38 
41  const char* prognm_;
45 
49 
52 
53  void nrJobsCB(CallBacker*);
54  bool acceptOK(CallBacker*);
55 
56  bool createJobScripts(const char*,const char*);
57  const char* getOutPutIDKey() const;
58  MultiID getTmpID(const char*) const;
59 };
60 
61 
62 namespace Batch
63 {
65 {
66 public:
68 
69  bool isSuitedFor(const char*) const;
70  bool canHandle(const JobSpec&) const;
71 };
72 }
73 
74 
78 public:
81 
82  mDefaultFactoryInstantiation1Param(uiBatchJobDispatcherLauncher,
85  "Cluster Processing",
86  tr("Cluster Processing"));
87 
88  virtual bool go(uiParent*);
89 
90 protected:
91 
92  virtual Batch::JobDispatcher& gtDsptchr();
94 
95 };
96 
97 
98 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiGenInput * nrinlfld_
Definition: uiclusterjobprov.h:46
IOPar & iopar_
Definition: uiclusterjobprov.h:40
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
InlineSplitJobDescProv * jobprov_
Definition: uiclusterjobprov.h:39
Base class (with factory) for methods to kick-off an OD batch job.
Definition: batchjobdispatch.h:70
A file-name input.
Definition: uifileinput.h:34
#define mDefaultFactoryInstantiation1Param(baseclss, clss, parclss, keywrd, usernm)
Definition: factory.h:299
Definition: uiclusterjobprov.h:27
Definition: uiparent.h:26
Definition: uiclusterjobprov.h:64
const char * prognm_
Definition: uiclusterjobprov.h:41
the data we need to specify an OD batch job.
Definition: batchjobdispatch.h:26
Definition: uidialog.h:42
uiGenInput * cmdfld_
Definition: uiclusterjobprov.h:48
Definition: uiclusterjobprov.h:75
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
General Input Element.
Definition: uigeninput.h:58
BufferString parfnm_
Definition: uiclusterjobprov.h:44
BufferString tempstordir_
Definition: uiclusterjobprov.h:42
Definition: batchjobdispatch.h:21
uiGenInput * datarootfld_
Definition: uiclusterjobprov.h:50
Batch::ClusterJobDispatcher & jd_
Definition: uiclusterjobprov.h:93
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uilabel.h:24
SimpleClusterProgDef()
Definition: uiclusterjobprov.h:67
uiLabel * nrjobsfld_
Definition: uiclusterjobprov.h:47
uiGenInput * instdirfld_
Definition: uiclusterjobprov.h:51
BufferString scriptdir_
Definition: uiclusterjobprov.h:43
Base class for Cluster prog definitions.
Definition: clusterjobdispatch.h:23
kicks off Cluster job dispatcher.
Definition: clusterjobdispatch.h:39
Compound key consisting of ints.
Definition: multiid.h:25
Implementation of JobDescProv based upon splitting the inlines in the IOPar.
Definition: jobdescprov.h:121
launches the UI of a Batch::JobDispatcher
Definition: uibatchjobdispatcherlauncher.h:26

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