OpendTect-6_4  6.4
wellreadaccess.h
Go to the documentation of this file.
1 #ifndef wellreadaccess_h
2 #define wellreadaccess_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: July 2014
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "wellmod.h"
17 #include "gendefs.h"
18 #include "uistrings.h"
19 class BufferStringSet;
20 
21 
22 namespace Well
23 {
24 class D2TModel;
25 class Data;
26 class Log;
27 class Track;
28 
32 {
33 public:
34 
35  ReadAccess( Data& d ) : wd_(d) {}
36  virtual ~ReadAccess() {}
37 
38  virtual bool get() const = 0;
42  virtual bool getInfo() const = 0;
43  virtual bool getTrack() const = 0;
44  virtual bool getLogs() const = 0;
45  virtual bool getMarkers() const = 0;
46  virtual bool getD2T() const = 0;
47  virtual bool getCSMdl() const = 0;
48  virtual bool getDispProps() const = 0;
49  virtual bool getLog(const char* lognm) const = 0;
50  virtual void getLogInfo(BufferStringSet& lognms) const = 0;
51 
52  virtual const OD::String& errMsg() const = 0;
53  Data& data() { return wd_; }
54  const Data& data() const { return wd_; }
55 
56 protected:
57 
59 
60  bool addToLogSet(Log*) const;
61  bool updateDTModel(D2TModel*,bool ischeckshot,
62  uiString& errmsg) const;
63  bool updateDTModel(D2TModel*,bool ischeckshot,
64  BufferString& errmsg) const;
66 
67  /*mDeprecated*/ bool updateDTModel(D2TModel*,const Track&,float,bool) const;
68 
69 };
70 
71 }; // namespace Well
72 
73 
74 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Depth to time model.
Definition: welld2tmodel.h:34
Well log.
Definition: welllog.h:44
virtual ~ReadAccess()
Definition: wellreadaccess.h:36
Definition: file.h:99
Data & data()
Definition: wellreadaccess.h:53
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
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
const Data & data() const
Definition: wellreadaccess.h:54
Definition: directionalsurvey.h:19
Well track.
Definition: welltrack.h:29
Definition: repos.h:25
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
ReadAccess(Data &d)
Definition: wellreadaccess.h:35
const char * errMsg() const
Definition: horizontracker.h:61
The holder of all data concerning a certain well.
Definition: welldata.h:113
Data & wd_
Definition: wellreadaccess.h:58

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