OpendTect  6.6
madprocexec.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3  * (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
4  * AUTHOR : Bert
5  * DATE : Jan 2008
6  * ID : $Id$
7 -*/
8 
9 #include "madagascarmod.h"
10 #include "enums.h"
11 #include "executor.h"
12 #include "od_ostream.h"
13 #include "uistring.h"
14 //#include <fstream>
15 
17 
18 
19 namespace ODMad
20 {
21 //class ProcFlow;
22 class MadStream;
23 
24 mExpClass(Madagascar) ProcExec : public ::Executor
26 public:
27 
28  enum FlowStage { Start, Intermediate, Finish };
30 
31  ProcExec(const IOPar&,od_ostream&);
33 
34  const IOPar& pars() const { return pars_; }
35 
38  od_int64 nrDone() const { return nrdone_; }
39  od_int64 totalNr() const;
40  int nextStep();
41 
42  bool init();
43  uiString errMsg() { return errmsg_; }
44 
45  static const char* sKeyFlowStage();
46  static const char* sKeyCurProc();
47 
48 protected:
49 
52 // ProcFlow& procflow_;
55  int nrdone_;
56  float* trc_;
57 
59 
62 
65 
67 
68  const char* getProcString();
69  const char* getPlotString() const;
70 
71 };
72 
73 } // namespace ODMad
74 
ODMad::ProcExec::strm_
od_ostream & strm_
Definition: madprocexec.h:54
ODMad::ProcExec::procfptr_
FILE * procfptr_
Definition: madprocexec.h:60
ODMad::ProcExec::madstream_
MadStream * madstream_
Definition: madprocexec.h:58
ODMad::ProcExec::procstream_
od_ostream * procstream_
Definition: madprocexec.h:63
ODMad::ProcExec::~ProcExec
od_ostream & ~ProcExec()
ODMad::ProcExec
Definition: madprocexec.h:25
uistring.h
od_ostream.h
FILE
#define FILE
Definition: hdf_write_read_simple.c:25
od_int64
#define od_int64
Definition: plftypes.h:35
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
ODMad::ProcExec::stage_
FlowStage stage_
Definition: madprocexec.h:51
ODMad::ProcExec::nextStep
int nextStep()
ODMad
Definition: maddefs.h:16
ODMad::ProcExec::totalNr
od_int64 totalNr() const
ODMad::ProcExec::errmsg_
uiString errmsg_
Definition: madprocexec.h:53
ODMad::ProcExec::plotfptr_
FILE * plotfptr_
Definition: madprocexec.h:61
ODMad::ProcExec::nrDone
od_int64 nrDone() const
Definition: madprocexec.h:38
ODMad::ProcExec::progmeter_
TextStreamProgressMeter * progmeter_
Definition: madprocexec.h:66
ODMad::ProcExec::nrdone_
int nrdone_
Definition: madprocexec.h:55
ODMad::ProcExec::plotstream_
od_ostream * plotstream_
Definition: madprocexec.h:64
ODMad::ProcExec::getProcString
const char * getProcString()
ODMad::ProcExec::init
bool init()
TextStreamProgressMeter
Textual progress indicator for batch programs.
Definition: progressmeterimpl.h:76
executor.h
ODMad::ProcExec::sKeyCurProc
static const char * sKeyCurProc()
ODMad::ProcExec::trc_
float * trc_
Definition: madprocexec.h:56
ODMad::ProcExec::uiNrDoneText
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
ODMad::ProcExec::uiMessage
uiString uiMessage() const
will be message() again in 7.x
ODMad::ProcExec::mDeclareEnumUtils
mDeclareEnumUtils(FlowStage) ProcExec(const IOPar &
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
enums.h
MPE::errmsg_
BufferString errmsg_
Definition: horizontracker.h:118
ODMad::ProcExec::mODTextTranslationClass
mODTextTranslationClass(ProcExec)
ODMad::ProcExec::pars_
IOPar & pars_
Definition: madprocexec.h:50
ODMad::ProcExec::getPlotString
const char * getPlotString() const
ODMad::ProcExec::pars
const IOPar & pars() const
Definition: madprocexec.h:34
ODMad::ProcExec::errMsg
uiString errMsg()
Definition: madprocexec.h:43
ODMad::ProcExec::FlowStage
FlowStage
Definition: madprocexec.h:28
ODMad::ProcExec::Start
@ Start
Definition: madprocexec.h:28
od_ostream
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
ODMad::ProcExec::sKeyFlowStage
static const char * sKeyFlowStage()
ODMad::MadStream
Definition: madstream.h:28

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