OpendTect-6_4  6.4
wellodwriter.h
Go to the documentation of this file.
1 #ifndef wellodwriter_h
2 #define wellodwriter_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 "wellwriteaccess.h"
18 #include "wellio.h"
19 #include "od_iosfwd.h"
20 class IOObj;
21 
22 namespace Well
23 {
24 class Data;
25 class Log;
26 
30  , public WriteAccess
31 {
32 public:
33 
34  odWriter(const IOObj&,const Data&,BufferString& errmsg);
35  odWriter(const char* fnm,const Data&,
36  BufferString& errmsg);
37 
38  bool put() const;
39 
40  virtual bool putInfoAndTrack() const;
41  virtual bool putTrack() const;
42  virtual bool putLogs() const;
43  virtual bool putMarkers() const;
44  virtual bool putD2T() const;
45  virtual bool putCSMdl() const;
46  virtual bool putDispProps() const;
47  virtual bool putLog(const Log&) const;
48 
49  virtual const OD::String& errMsg() const { return odIO::errMsg(); }
50 
51  bool putInfoAndTrack(od_ostream&) const;
52  bool putMarkers(od_ostream&) const;
53  bool putD2T(od_ostream&) const;
54  bool putCSMdl(od_ostream&) const;
55  bool putDispProps(od_ostream&) const;
56 
57  void setBinaryWriteLogs( bool yn ) { binwrlogs_ = yn; }
58 
59  static const char* sKeyLogStorage() { return "Log storage";}
60 
61 protected:
62 
63  bool binwrlogs_;
64 
65  virtual bool isFunctional() const;
66 
67  bool putLog(od_ostream&,const Log&) const;
68  bool wrHdr(od_ostream&,const char*) const;
69  bool putTrack(od_ostream&) const;
70  bool doPutD2T(bool) const;
71  bool doPutD2T(od_ostream&,bool) const;
72 
73 private:
74 
75  void init();
76 
77 };
78 
79 
80 }; // namespace Well
81 
82 #endif
#define mExpClass(module)
Definition: commondefs.h:160
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
Definition: ioobj.h:58
Well log.
Definition: welllog.h:44
bool init()
bool binwrlogs_
Definition: wellodwriter.h:63
Definition: file.h:99
Base class for object reading data from data store into Well::Data.
Definition: wellwriteaccess.h:28
base class for Reader and Writer.
Definition: wellio.h:26
static const char * sKeyLogStorage()
Definition: wellodwriter.h:59
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
Definition: directionalsurvey.h:19
Definition: repos.h:25
void setBinaryWriteLogs(bool yn)
Definition: wellodwriter.h:57
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
The holder of all data concerning a certain well.
Definition: welldata.h:113
virtual const OD::String & errMsg() const
Definition: wellodwriter.h:49
Writes Well::Data to OpendTect file storage.
Definition: wellodwriter.h:29

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