OpendTect  6.3
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 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "wellcommon.h"
15 #include "ranges.h"
16 #include "bufstring.h"
17 #include "uistring.h"
18 class IOObj;
19 class BufferStringSet;
20 
21 
22 namespace Well
23 {
24 class ReadAccess;
25 
29 { mODTextTranslationClass(Reader);
30 public:
31 
32  Reader(const DBKey&,Data&);
33  Reader(const IOObj&,Data&);
34  ~Reader();
35  bool isUsable() const { return ra_; }
36 
37  bool get() const;
38  // Should use Well::MGR().get instead to get all
39 
40  bool getInfo() const;
41  bool getTrack() const;
42  bool getLogs() const;
43  bool getMarkers() const;
44  bool getD2T() const;
45  bool getCSMdl() const;
46  bool getDispProps() const;
47  bool getLog(const char* lognm) const;
48  void getLogInfo(BufferStringSet& lognms) const;
49 
50  const uiString& errMsg() const { return errmsg_; }
51  Well::Data* data();
52  const Well::Data* data() const
53  { return const_cast<Reader*>(this)->data(); }
54 
55  bool getMapLocation(Coord&) const;
56 
57 protected:
58 
60  mutable uiString errmsg_;
61 
62 private:
63 
64  void init(const IOObj&,Data&);
65 
66 };
67 
68 
69 }; // namespace Well
#define mExpClass(module)
Definition: commondefs.h:157
Definition: ioobj.h:57
uiString errmsg_
Definition: wellreader.h:60
ReadAccess * ra_
Definition: wellreader.h:59
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
bool init()
Definition: uistring.h:88
Set of BufferString objects.
Definition: bufstringset.h:25
const uiString & errMsg() const
Definition: wellreader.h:50
Reads Well::Data from any data store.
Definition: wellreader.h:28
Base class for object reading data from data store into Well::Data.
Definition: wellreadaccess.h:24
Definition: wellcommon.h:16
bool isUsable() const
Definition: wellreader.h:35
BufferString errmsg_
Definition: horizontracker.h:117
const Well::Data * data() const
Definition: wellreader.h:52
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
The holder of all data concerning a certain well.
Definition: welldata.h:36
2D point or vector class.
Definition: commontypes.h:58

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