OpendTect  6.6
wellodreader.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 "wellreadaccess.h"
17 #include "wellio.h"
18 #include "sets.h"
19 #include "ranges.h"
20 #include "od_iosfwd.h"
21 class BufferStringSet;
22 class IOObj;
23 
24 
25 namespace Well
26 {
27 class Data;
28 class Log;
29 
33  , public Well::ReadAccess
35 public:
36 
37  odReader(const IOObj&,Data&,uiString& errmsg);
38  odReader(const char* fnm,Data&,uiString& errmsg);
39 
40  virtual bool get() const { return true; }
41 
42  virtual bool getInfo() const;
43  virtual bool getTrack() const;
44  virtual bool getLogs(bool needjustinfo=false) const;
45  virtual bool getMarkers() const; //needs to read Track too
46  virtual bool getD2T() const;
47  virtual bool getCSMdl() const;
48  virtual bool getDispProps() const;
49  virtual bool getLog(const char* lognm) const;
50  virtual void getLogInfo(BufferStringSet& lognms) const;
51 
52  virtual const uiString& errMsg() const { return odIO::errMsg(); }
53 
54  bool getInfo(od_istream&) const;
55  bool addLog(od_istream&, bool needjustinfo=false) const;
56  bool getMarkers(od_istream&) const;
57  bool getD2T(od_istream&) const;
58  bool getCSMdl(od_istream&) const;
59  bool getDispProps(od_istream&) const;
60 
61 protected:
62 
63  bool getOldTimeWell(od_istream&) const;
65  void readLogData(Log&,od_istream&,int) const;
66  bool getTrack(od_istream&) const;
67  void adjustTrackIfNecessary(bool frommarkers=false) const;
68  bool doGetD2T(od_istream&,bool csmdl) const;
69  bool doGetD2T(bool) const;
70 
71  static Log* rdLogHdr(od_istream&,int&,int);
72 
74  void setStrmOperErrMsg(od_istream&,const uiString&) const;
76 
77 };
78 
79 }; // namespace Well
80 
Well::odReader::getLog
virtual bool getLog(const char *lognm) const
Well::Data
The holder of all data concerning a certain well.
Definition: welldata.h:121
Well::odReader::getLogs
virtual bool getLogs(bool needjustinfo=false) const
Well::odReader::getDispProps
virtual bool getDispProps() const
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
Well::odReader::getInfo
bool getInfo(od_istream &) const
Well::odReader::adjustTrackIfNecessary
void adjustTrackIfNecessary(bool frommarkers=false) const
Well::odReader::mODTextTranslationClass
mODTextTranslationClass(Well::odReader)
Well::ReadAccess
Base class for object reading data from data store into Well::Data.
Definition: wellreadaccess.h:31
Well::odReader::getCSMdl
virtual bool getCSMdl() const
Checkshot mdl.
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
od_istream
OD class for stream read common access to the std::cin.
Definition: od_istream.h:24
Well::odReader::getD2T
bool getD2T(od_istream &) const
Well::odReader::getLogInfo
virtual void getLogInfo(BufferStringSet &lognms) const
Well::odReader::getLogInfo
void getLogInfo(BufferStringSet &, TypeSet< int > &) const
Well::odReader::getTrack
virtual bool getTrack() const
Repos::Data
@ Data
Definition: repos.h:24
Well::odIO::errMsg
const uiString & errMsg() const
Definition: wellio.h:52
Well
Definition: directionalsurvey.h:20
Well::odReader::doGetD2T
bool doGetD2T(bool) const
Well::odIO
base class for Reader and Writer.
Definition: wellio.h:26
Well::odReader::getCSMdl
bool getCSMdl(od_istream &) const
Well::odReader
Reads Well::Data from OpendTect file store
Definition: wellodreader.h:34
Well::odReader::getOldTimeWell
bool getOldTimeWell(od_istream &) const
IOObj
Definition: ioobj.h:58
Well::odReader::getMarkers
virtual bool getMarkers() const
File::Log
@ Log
Definition: file.h:122
wellreadaccess.h
Well::odReader::getMarkers
bool getMarkers(od_istream &) const
Well::Log
Well log.
Definition: welllog.h:44
Well::odReader::doGetD2T
bool doGetD2T(od_istream &, bool csmdl) const
Well::odReader::get
virtual bool get() const
Definition: wellodreader.h:40
Well::odReader::sCannotReadFileHeader
uiString sCannotReadFileHeader() const
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Well::odReader::rdLogHdr
static Log * rdLogHdr(od_istream &, int &, int)
Well::odReader::odReader
odReader(const IOObj &, Data &, uiString &errmsg)
od_iosfwd.h
Well::odReader::readLogData
void readLogData(Log &, od_istream &, int) const
Well::odReader::addLog
bool addLog(od_istream &, bool needjustinfo=false) const
Well::odReader::getInfo
virtual bool getInfo() const
ranges.h
Well::odReader::getD2T
virtual bool getD2T() const
sets.h
Well::odReader::setInpStrmOpenErrMsg
void setInpStrmOpenErrMsg(od_istream &) const
Well::odReader::getTrack
bool getTrack(od_istream &) const
Well::odReader::odReader
odReader(const char *fnm, Data &, uiString &errmsg)
Well::odReader::errMsg
virtual const uiString & errMsg() const
Definition: wellodreader.h:52
wellio.h
Well::odReader::setStrmOperErrMsg
void setStrmOperErrMsg(od_istream &, const uiString &) const
Well::odReader::getDispProps
bool getDispProps(od_istream &) const
TypeSet< int >

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