OpendTect-6_4  6.4
wellodreader.h
Go to the documentation of this file.
1 #ifndef wellodreader_h
2 #define wellodreader_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 "wellreadaccess.h"
18 #include "wellio.h"
19 #include "sets.h"
20 #include "ranges.h"
21 #include "od_iosfwd.h"
22 class BufferStringSet;
23 class IOObj;
24 
25 
26 namespace Well
27 {
28 class Data;
29 class Log;
30 
34  , public Well::ReadAccess
35 {
36 public:
37 
38  odReader(const IOObj&,Data&,BufferString& errmsg);
39  odReader(const char* fnm,Data&,BufferString& errmsg);
40 
41  virtual bool get() const { return true; }
42 
43  virtual bool getInfo() const;
44  virtual bool getTrack() const;
45  virtual bool getLogs() const;
46  virtual bool getMarkers() const; //needs to read Track too
47  virtual bool getD2T() const;
48  virtual bool getCSMdl() const;
49  virtual bool getDispProps() const;
50  virtual bool getLog(const char* lognm) const;
51  virtual void getLogInfo(BufferStringSet& lognms) const;
52 
53  virtual const OD::String& errMsg() const { return odIO::errMsg(); }
54 
55  bool getInfo(od_istream&) const;
56  bool addLog(od_istream&) const;
57  bool getMarkers(od_istream&) const;
58  bool getD2T(od_istream&) const;
59  bool getCSMdl(od_istream&) const;
60  bool getDispProps(od_istream&) const;
61 
62 protected:
63 
64  bool getOldTimeWell(od_istream&) const;
65  void getLogInfo(BufferStringSet&,TypeSet<int>&) const;
66  void readLogData(Log&,od_istream&,int) const;
67  bool getTrack(od_istream&) const;
68  bool doGetD2T(od_istream&,bool csmdl) const;
69  bool doGetD2T(bool) const;
70 
71  static Log* rdLogHdr(od_istream&,int&,int);
72 
73 };
74 
75 }; // namespace Well
76 
77 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: ioobj.h:58
Well log.
Definition: welllog.h:44
Definition: file.h:99
Set of BufferString objects.
Definition: bufstringset.h:28
OD class for stream read.
Definition: od_istream.h:24
base class for Reader and Writer.
Definition: wellio.h:26
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
Definition: repos.h:25
const OD::String & errMsg() const
Definition: wellio.h:53
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Reads Well::Data from OpendTect file store.
Definition: wellodreader.h:33
The holder of all data concerning a certain well.
Definition: welldata.h:113
virtual const OD::String & errMsg() const
Definition: wellodreader.h:53

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