OpendTect  6.3
wellwriter.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 "wellcommon.h"
15 #include "uistring.h"
16 #include "od_iosfwd.h"
17 class IOObj;
18 
19 namespace Well
20 {
21 class WriteAccess;
22 
31 public:
32 
33  Writer(const DBKey&,const Data&);
34  Writer(const IOObj&,const Data&);
35  ~Writer();
36  bool isUsable() const { return wa_; }
37 
38  bool put() const;
39 
40  bool putInfoAndTrack() const;
41  bool putLogs() const;
42  bool putMarkers() const;
43  bool putD2T() const;
44  bool putCSMdl() const;
45  bool putDispProps() const;
46 
47  const uiString& errMsg() const { return errmsg_; }
48  const Data* data() const;
49 
50  bool isFunctional() const;
51 
52  static bool isFunctional(const DBKey&);
53  static bool isFunctional(const IOObj&);
54 
55 protected:
56 
58  mutable uiString errmsg_;
59 
60 private:
61 
62  void init(const IOObj&,const Data&);
63 
64 };
65 
66 
67 }; // namespace Well
#define mExpClass(module)
Definition: commondefs.h:157
Definition: ioobj.h:57
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
bool init()
const uiString & errMsg() const
Definition: wellwriter.h:47
Definition: uistring.h:88
WriteAccess * wa_
Definition: wellwriter.h:57
Base class for object reading data from data store into Well::Data.
Definition: wellwriteaccess.h:23
Writes Well::Data to any data storage.
Definition: wellwriter.h:29
Definition: wellcommon.h:16
BufferString errmsg_
Definition: horizontracker.h:117
bool isUsable() const
Definition: wellwriter.h:36
uiString errmsg_
Definition: wellwriter.h:58
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
The holder of all data concerning a certain well.
Definition: welldata.h:36

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