OpendTect  6.3
wellodwriter.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 "wellwriteaccess.h"
15 #include "wellio.h"
16 #include "od_iosfwd.h"
17 class IOObj;
18 
19 namespace Well
20 {
21 
25  , public WriteAccess
27 public:
28 
29  odWriter(const IOObj&,const Data&,uiString& errmsg);
30  odWriter(const char* fnm,const Data&,
31  uiString& errmsg);
32 
33  bool put() const;
34 
35  virtual bool putInfoAndTrack() const;
36  virtual bool putLogs() const;
37  virtual bool putMarkers() const;
38  virtual bool putD2T() const;
39  virtual bool putCSMdl() const;
40  virtual bool putDispProps() const;
41 
42  virtual const uiString& errMsg() const { return odIO::errMsg(); }
43 
44  bool putInfoAndTrack(od_ostream&) const;
45  bool putMarkers(od_ostream&) const;
46  bool putD2T(od_ostream&) const;
47  bool putCSMdl(od_ostream&) const;
48  bool putDispProps(od_ostream&) const;
49 
50  void setBinaryWriteLogs( bool yn ) { binwrlogs_ = yn; }
51 
52  static const char* sKeyLogStorage() { return "Log storage";}
53  uiString sStartWriting() const { return tr("Start Writing"); }
54 
55 
56 protected:
57 
58  bool binwrlogs_;
59 
60  virtual bool isFunctional() const;
61 
62  void setStrmErrMsg(od_stream&,const uiString&) const;
63  uiString startWriteStr() const;
64  bool putLog(od_ostream&,const Log&) const;
65  bool wrHdr(od_ostream&,const char*) const;
66  bool putTrack(od_ostream&) const;
67  bool doPutD2T(bool) const;
68  bool doPutD2T(od_ostream&,bool) const;
69 
70 private:
71 
72  void init();
73 
74 };
75 
76 
77 }; // namespace Well
const uiString & errMsg() const
Definition: wellio.h:51
#define mExpClass(module)
Definition: commondefs.h:157
uiString sStartWriting() const
Definition: wellodwriter.h:53
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
Definition: ioobj.h:57
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
virtual const uiString & errMsg() const
Definition: wellodwriter.h:42
Well log.
Definition: welllog.h:40
bool init()
bool binwrlogs_
Definition: wellodwriter.h:58
Definition: uistring.h:88
OD base class for stream read/write.
Definition: od_stream.h:52
Base class for object reading data from data store into Well::Data.
Definition: wellwriteaccess.h:23
base class for Reader and Writer.
Definition: wellio.h:25
static const char * sKeyLogStorage()
Definition: wellodwriter.h:52
Definition: wellcommon.h:16
void setBinaryWriteLogs(bool yn)
Definition: wellodwriter.h:50
The holder of all data concerning a certain well.
Definition: welldata.h:36
Writes Well::Data to OpendTect file storage.
Definition: wellodwriter.h:24

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