OpendTect-6_4  6.4
mmprogspec.h
Go to the documentation of this file.
1 #ifndef mmprogspec_h
2 #define mmprogspec_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jul 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "mmprocmod.h"
16 #include "datainpspec.h"
17 #include "namedobj.h"
18 
19 
20 namespace MMProc
21 {
22 
28 {
29 public:
30 
31  ProgSpec( const char* nm, const char* pp,
32  const char* pnm )
33  : NamedObject(nm)
34  , purpose_(pp)
35  , programname_(pnm) {}
36 
37  const char* purpose() const // only offer for this purpose
38  { return purpose_; }
39  const char* programName() const
40  { return programname_; }
41 
42  mClass(MMProc) Option : public NamedObject
43  {
44  Option(const char* usrtxt)
45  : NamedObject(usrtxt)
46  , inpspec_(0) {}
47  ~Option() { delete inpspec_; }
48 
50  };
51 
52  virtual void getSplitOptions(ObjectSet<Option>&) const {}
53  virtual void split(const IOPar& inp,const IOPar& opts,
54  ObjectSet<IOPar>&) const = 0;
55 
56  virtual void getExecuteOptions(ObjectSet<Option>&) const {}
58 
59  static int add(ProgSpec*);
60 
61 protected:
62 
65 
66 };
67 
69 
70 
71 }; // namespace MMProc
72 
73 
74 #endif
#define mExpClass(module)
Definition: commondefs.h:160
ObjectSet< ProgSpec > & PRSPS()
#define mGlobal(module)
Definition: commondefs.h:163
const char * purpose() const
Definition: mmprogspec.h:37
Set of pointers to objects.
Definition: commontypes.h:32
Definition: mmprogspec.h:42
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Specification of input characteristics.
Definition: datainpspec.h:89
const BufferString purpose_
Definition: mmprogspec.h:63
Option(const char *usrtxt)
Definition: mmprogspec.h:44
virtual void getSplitOptions(ObjectSet< Option > &) const
Definition: mmprogspec.h:52
Multi Machine Processing.
Definition: mmassetmgr.h:23
Distributed computing specification.
Definition: mmprogspec.h:27
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Object with a name.
Definition: namedobj.h:35
ProgSpec(const char *nm, const char *pp, const char *pnm)
Definition: mmprogspec.h:31
~Option()
Definition: mmprogspec.h:47
const BufferString programname_
Definition: mmprogspec.h:64
const char * programName() const
Definition: mmprogspec.h:39
#define mClass(module)
Definition: commondefs.h:164
DataInpSpec * inpspec_
null=text
Definition: mmprogspec.h:49
virtual void getExecuteOptions(ObjectSet< Option > &) const
Will be set in each IOPar.
Definition: mmprogspec.h:56

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