OpendTect-6_4  6.4
wellreader.h
Go to the documentation of this file.
1 #ifndef wellreader_h
2 #define wellreader_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert Bril
9  Date: Aug 2003
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "wellmod.h"
17 #include "ranges.h"
18 #include "bufstring.h"
19 #include "uistring.h"
20 class IOObj;
21 class BufferStringSet;
22 
23 
24 namespace Well
25 {
26 class Data;
27 class ReadAccess;
28 
32 { mODTextTranslationClass(Reader);
33 public:
34 
35  Reader(const MultiID&,Data&);
36  Reader(const IOObj&,Data&);
37  ~Reader();
38  bool isUsable() const { return ra_; }
39 
40  bool get() const;
41  // Should use Well::MGR().get instead to get all
42 
43  bool getInfo() const;
44  bool getTrack() const;
45  bool getLogs() const;
46  bool getMarkers() const;
47  bool getD2T() const;
48  bool getCSMdl() const;
49  bool getDispProps() const;
50  bool getLog(const char* lognm) const;
51  void getLogInfo(BufferStringSet& lognms) const;
52 
53  const OD::String& errMsg() const { return errmsg_; }
54  Well::Data* data();
55  const Well::Data* data() const
56  { return const_cast<Reader*>(this)->data(); }
57 
58  bool getMapLocation(Coord&) const;
59 
60 protected:
61 
64 
65 private:
66 
67  void init(const IOObj&,Data&);
68 
69 };
70 
71 
72 }; // namespace Well
73 
74 
75 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: ioobj.h:58
ReadAccess * ra_
Definition: wellreader.h:62
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool init()
BufferString errmsg_
Definition: wellreader.h:63
A cartesian coordinate in 2D space.
Definition: coord.h:25
Set of BufferString objects.
Definition: bufstringset.h:28
const OD::String & errMsg() const
Definition: wellreader.h:53
Reads Well::Data from any data store.
Definition: wellreader.h:31
Base class for object reading data from data store into Well::Data.
Definition: wellreadaccess.h:31
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
Definition: directionalsurvey.h:19
bool isUsable() const
Definition: wellreader.h:38
Definition: repos.h:25
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString errmsg_
Definition: horizontracker.h:119
const Well::Data * data() const
Definition: wellreader.h:55
The holder of all data concerning a certain well.
Definition: welldata.h:113
Compound key consisting of ints.
Definition: multiid.h:25

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