OpendTect-6_4  6.4
wellman.h
Go to the documentation of this file.
1 #ifndef wellman_h
2 #define wellman_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 "sets.h"
18 #include "bufstring.h"
19 
20 class IOObj;
21 class MultiID;
22 class BufferStringSet;
23 
24 namespace Well
25 {
26 
27 class Data;
28 
34 {
35 public:
36  ~Man();
37 
38  void removeObject( const Well::Data* );
39  Data* get(const MultiID&);
40  void add(const MultiID&,Data*);
42  Data* release(const MultiID&);
44  bool isLoaded(const MultiID&) const;
45  bool reload(const MultiID&);
46 
47  const char* errMsg() const { return msg_; }
48  ObjectSet<Data>& wells() { return wells_; }
49 
50  static bool getLogNames(const MultiID&,BufferStringSet&);
51  static bool getMarkerNames(BufferStringSet&);
52 
53 protected:
54 
55  Man() {}
56  static Man* mgr_;
57  mGlobal(Well) friend Man& MGR();
58 
59  ObjectSet<Data> wells_;
61 
62  int gtByKey(const MultiID&) const;
63 };
64 
65 mGlobal(Well) Man& MGR();
66 
67 mGlobal(Well) IOObj* findIOObj(const char* wellnm,const char* uwi);
68 
69 } // namespace Well
70 
71 #endif
#define mExpClass(module)
Definition: commondefs.h:160
const char * errMsg() const
Definition: wellman.h:47
IOObj * findIOObj(const char *wellnm, const char *uwi)
Definition: ioobj.h:58
Well manager.
Definition: wellman.h:33
#define mGlobal(module)
Definition: commondefs.h:163
Man()
Definition: wellman.h:55
Man & MGR()
Set of BufferString objects.
Definition: bufstringset.h:28
Set of pointers to objects.
Definition: commontypes.h:32
Definition: directionalsurvey.h:19
Definition: repos.h:25
ObjectSet< Data > & wells()
Definition: wellman.h:48
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
Compound key consisting of ints.
Definition: multiid.h:25
static Man * mgr_
Definition: wellman.h:56

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