OpendTect-6_4  6.4
attribdescsetsholder.h
Go to the documentation of this file.
1 #ifndef attribdescsetsholder_h
2 #define attribdescsetsholder_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Helene HUCK
9  Date: 11-03-2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "attributeenginemod.h"
16 #include "gendefs.h"
17 
18 namespace Attrib
19 {
20 
21 class DescSet;
22 class DescSetMan;
23 class DescSetsHolder;
24 
25 mGlobal(AttributeEngine) const DescSetsHolder& DSHolder();
26 mGlobal(AttributeEngine) DescSetsHolder& eDSHolder();
27 
33 mExpClass(AttributeEngine) DescSetsHolder
34 {
35 public:
36  DescSetsHolder();
37  ~DescSetsHolder();
38 
39  const Attrib::DescSetMan* getDescSetMan(bool is2d) const;
40  Attrib::DescSetMan* getDescSetMan(bool is2d);
41  const Attrib::DescSet* getDescSet(bool is2d,bool isstored) const;
42  Attrib::DescSet* getDescSet(bool is2d,bool isstored);
43  void replaceAttribSet(DescSet*);
44  //this renews the manager
45 
46  //be sure you know what you're doing!
47  void replaceADSMan(DescSetMan*,bool dodelete=false);
48 
49 protected:
54 
55  void clearHolder();
56 
57  static DescSetsHolder* dsholder_;
58 
59 private:
60  friend mExp(AttributeEngine)
61  DescSetsHolder& eDSHolder();
62  //editable DescSetsHolder
63  friend mExp(AttributeEngine)
64  const DescSetsHolder& DSHolder();
65 
66 public:
67 
68  void replaceStoredAttribSet(DescSet*);
69  //needed for backward compatibility v < 4.1.1
70 };
71 
72 } // namespace Attrib
73 
74 #endif
#define mExpClass(module)
Definition: commondefs.h:160
#define mGlobal(module)
Definition: commondefs.h:163
Attrib::DescSet * adsstored2d_
Definition: attribdescsetsholder.h:52
Manages attribute description set.
Definition: attribdescsetman.h:28
Set of attribute descriptions.
Definition: attribdescset.h:35
static DescSetsHolder * dsholder_
Definition: attribdescsetsholder.h:57
Pack to carry DescSet Managers for live attributes and DescSets for stored data, both in 2D and 3D...
Definition: attribdescsetsholder.h:33
#define mExp(module)
Definition: commondefs.h:159
const DescSetsHolder & DSHolder()
Attrib::DescSetMan * adsman3d_
Definition: attribdescsetsholder.h:51
DescSetsHolder & eDSHolder()
Attrib::DescSetMan * adsman2d_
Definition: attribdescsetsholder.h:50
Semblance Attribute.
Definition: attribdataholder.h:25
Attrib::DescSet * adsstored3d_
Definition: attribdescsetsholder.h:53

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