OpendTect  6.6
wellreader.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert Bril
8  Date: Aug 2003
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "wellmod.h"
16 #include "executor.h"
17 #include "ranges.h"
18 #include "bufstring.h"
19 #include "uistring.h"
20 #include "wellman.h"
21 class IOObj;
22 class BufferStringSet;
23 
24 
25 namespace Well
26 {
27 class Data;
28 class ReadAccess;
29 class LoadReqs;
30 
31 
36 public:
37 
38  Reader(const MultiID&,Data&);
39  Reader(const IOObj&,Data&);
41  bool isUsable() const { return ra_; }
42 
43  bool get() const;
44  // Should use Well::MGR().get instead to get all
45 
46  bool getInfo() const;
47  bool getTrack() const;
48  bool getLogs(bool needjustinfo=false) const;
50  bool getMarkers() const;
51  bool getD2T() const;
52  bool getCSMdl() const;
53  bool getDispProps() const;
54  bool getLog(const char* lognm) const;
55  void getLogInfo(BufferStringSet& lognms) const;
56 
57  const uiString& errMsg() const { return errmsg_; }
58 
60  const Well::Data* data() const
61  { return const_cast<Reader*>(this)->data(); }
62 
63  bool getMapLocation(Coord&) const;
64 
65 protected:
66 
68  mutable uiString errmsg_;
69 
70 private:
71 
72  void init(const IOObj&,Data&);
73 
74 };
75 
76 } // namespace Well
77 
78 
81 public:
82 
85  const Well::LoadReqs reqs=Well::LoadReqs());
86 
87  int nextStep();
88  od_int64 totalNr() const;
89  od_int64 nrDone() const;
92  bool allWellsRead() const { return allwellsread_; }
93  //Can then be used to launch a warning locally
94  const uiString& errMsg() const { return errmsg_; }
95 
96 protected:
102  bool allwellsread_ = true;
104 };
105 
MultiWellReader::nrDone
od_int64 nrDone() const
Well::Reader::data
Well::Data * data()
MultiWellReader::errmsg_
uiString errmsg_
Definition: wellreader.h:101
MultiWellReader::nextStep
mODTextTranslationClass(MultiWellReader) public int nextStep()
uistring.h
Well::Data
The holder of all data concerning a certain well.
Definition: welldata.h:121
Well::Reader::errmsg_
uiString errmsg_
Definition: wellreader.h:68
ObjectSet< Well::Data >
Well::Reader::ra_
ReadAccess * ra_
Definition: wellreader.h:67
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
Well::Reader::getLogInfo
void getLogInfo(BufferStringSet &lognms) const
od_int64
#define od_int64
Definition: plftypes.h:35
Well::Reader::getDispProps
bool getDispProps() const
Read display props only.
Well::ReadAccess
Base class for object reading data from data store into Well::Data.
Definition: wellreadaccess.h:31
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
MultiWellReader::wds_
ObjectSet< Well::Data > & wds_
Definition: wellreader.h:97
Well::Reader::~Reader
~Reader()
Well::Reader::get
bool get() const
Just read all.
MultiWellReader::keys_
TypeSet< MultiID > keys_
Definition: wellreader.h:98
Well::Reader::getD2T
bool getD2T() const
Read D2T model parts.
Repos::Data
@ Data
Definition: repos.h:24
MultiWellReader::nrwells_
od_int64 nrwells_
Definition: wellreader.h:99
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
bufstring.h
MultiWellReader::reqs_
const Well::LoadReqs reqs_
Definition: wellreader.h:103
Well::Reader::getLogs
bool getLogs(bool needjustinfo=false) const
Read logs only.
Well::Reader::init
void init(const IOObj &, Data &)
MultiWellReader::nrdone_
od_int64 nrdone_
Definition: wellreader.h:100
Coord
A cartesian coordinate in 2D space.
Definition: coord.h:25
MultiWellReader::allWellsRead
bool allWellsRead() const
Definition: wellreader.h:92
Well
Definition: directionalsurvey.h:20
Well::Reader::getTrack
bool getTrack() const
Read Track only.
Executor
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
IOObj
Definition: ioobj.h:58
MultiWellReader::uiMessage
uiString uiMessage() const
will be message() again in 7.x
executor.h
MultiWellReader::uiNrDoneText
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Well::Reader::data
const Well::Data * data() const
Definition: wellreader.h:60
Well::Reader::getCSMdl
bool getCSMdl() const
Read Checkshot model parts.
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
Well::Reader::isUsable
bool isUsable() const
Definition: wellreader.h:41
MultiWellReader
Definition: wellreader.h:80
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Well::Reader::Reader
mODTextTranslationClass(Reader) public Reader(const IOObj &, Data &)
MultiWellReader::totalNr
od_int64 totalNr() const
MPE::errmsg_
BufferString errmsg_
Definition: horizontracker.h:118
Well::LoadReqs
Definition: wellman.h:40
Well::Reader::getMapLocation
bool getMapLocation(Coord &) const
Well::Reader
Reads Well::Data from any data store.
Definition: wellreader.h:35
Well::Reader::getInfo
bool getInfo() const
Read Info only.
wellman.h
Well::Reader::errMsg
const uiString & errMsg() const
Definition: wellreader.h:57
ranges.h
MultiWellReader::errMsg
const uiString & errMsg() const
Definition: wellreader.h:94
Well::Reader::getLog
bool getLog(const char *lognm) const
Read this one only.
Well::Reader::getMarkers
bool getMarkers() const
Read Markers only.
TypeSet< MultiID >

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