OpendTect-6_4  6.4
velocityfunctionascio.h
Go to the documentation of this file.
1 #ifndef velocityfunctionascio_h
2 #define velocityfunctionascio_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Umesh Sinha
9  Date: Aug 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "velocitymod.h"
16 #include "tableascio.h"
17 #include "task.h"
18 
19 namespace Table { class FormatDesc; }
20 class BinIDValueSet;
21 
22 namespace Vel
23 {
24 
25 mExpClass(Velocity) FunctionAscIO : public Table::AscIO, public SequentialTask
27 public:
29  od_istream&,
30  od_int64 filesizeinkb=-1 );
31  static Table::FormatDesc* getDesc();
32  static void updateDesc(Table::FormatDesc&);
33 
34  float getUdfVal() const;
35  bool isXY() const;
37  { output_ = &bvs; first_ = true; }
38 
39 protected:
40 
41  int nextStep();
42  od_int64 nrDone() const { return nrdone_/1024; }
44  return tr("KBytes read");
45  }
46  od_int64 totalNr() const { return nrkbytes_; }
47  static void createDescBody(Table::FormatDesc&);
48 
51  bool first_;
54 };
55 
56 } // namespace Vel
57 
58 
59 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Velocity.
Definition: velocityfunction.h:32
od_int64 nrkbytes_
Definition: velocityfunctionascio.h:53
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
bool first_
Definition: velocityfunctionascio.h:51
description of input our output data content
Definition: tabledef.h:220
Definition: uistring.h:89
BinIDValueSet * output_
Definition: velocityfunctionascio.h:50
OD class for stream read.
Definition: od_istream.h:24
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:124
Definition: geom2dascio.h:21
od_int64 nrDone() const
Definition: velocityfunctionascio.h:42
od_int64 nrdone_
Definition: velocityfunctionascio.h:52
Definition: velocityfunctionascio.h:25
od_int64 totalNr() const
Definition: velocityfunctionascio.h:46
void setOutput(BinIDValueSet &bvs)
Definition: velocityfunctionascio.h:36
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: velocityfunctionascio.h:43
od_istream & strm_
Definition: velocityfunctionascio.h:49

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