OpendTect  6.3
wellio.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 "bufstring.h"
16 class IOObj;
17 class uiString;
18 
19 
20 namespace Well
21 {
22 
27 public:
28 
29  const OD::String& baseName() const { return basenm_; }
30 
31  const char* getFileName(const char* ext,int nr=0) const;
32  bool removeAll(const char* ext) const;
33 
34  static const char* sKeyWell();
35  static const char* sKeyTrack();
36  static const char* sKeyLog();
37  static const char* sKeyMarkers();
38  static const char* sKeyD2T();
39  static const char* sKeyDispProps();
40  static const char* sExtWell();
41  static const char* sExtLog();
42  static const char* sExtMarkers();
43  static const char* sExtD2T();
44  static const char* sExtCSMdl();
45  static const char* sExtDispProps();
46  static const char* sExtWellTieSetup();
47 
48  static const char* getMainFileName(const IOObj&);
49  static const char* getMainFileName(const DBKey&);
50 
51  const uiString& errMsg() const { return errmsg_; }
52 
53 protected:
54 
55 
56  odIO(const char*,uiString&);
57 
60 
61 public:
62 
63  static const char* mkFileName(const char* basfnm,const char* ext,int nr=0);
64 
65 };
66 
67 
68 }; // namespace Well
const uiString & errMsg() const
Definition: wellio.h:51
#define mExpClass(module)
Definition: commondefs.h:157
Definition: ioobj.h:57
uiString & errmsg_
Definition: wellio.h:58
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Definition: uistring.h:88
base class for Reader and Writer.
Definition: wellio.h:25
void removeAll()
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:29
Definition: wellcommon.h:16
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
BufferString errmsg_
Definition: horizontracker.h:117
const BufferString basenm_
Definition: wellio.h:59
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36

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