OpendTect  6.3
attribdescsetsholder.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: Helene HUCK
8  Date: 11-03-2010
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "attributeenginemod.h"
14 #include "gendefs.h"
15 
16 namespace Attrib
17 {
18 
19 class DescSet;
20 class DescSetMan;
21 class DescSetsHolder;
22 
23 mGlobal(AttributeEngine) const DescSetsHolder& DSHolder();
24 mGlobal(AttributeEngine) DescSetsHolder& eDSHolder();
25 
31 mExpClass(AttributeEngine) DescSetsHolder
32 {
33 public:
34  DescSetsHolder();
35  ~DescSetsHolder();
36 
37  const Attrib::DescSetMan* getDescSetMan(bool is2d) const;
38  Attrib::DescSetMan* getDescSetMan(bool is2d);
39  const Attrib::DescSet* getDescSet(bool is2d,bool isstored) const;
40  Attrib::DescSet* getDescSet(bool is2d,bool isstored);
41  void replaceAttribSet(DescSet*);
42  //this renews the manager
43 
44  //be sure you know what you're doing!
45  void replaceADSMan(DescSetMan*,bool dodelete=false);
46 
47 protected:
52 
53  void clearHolder();
54 
55  static DescSetsHolder* dsholder_;
56 
57 private:
58  friend mExp(AttributeEngine)
59  DescSetsHolder& eDSHolder();
60  //editable DescSetsHolder
61  friend mExp(AttributeEngine)
62  const DescSetsHolder& DSHolder();
63 
64 public:
65 
66  void replaceStoredAttribSet(DescSet*);
67  //needed for backward compatibility v < 4.1.1
68 };
69 
70 } // namespace Attrib
#define mExpClass(module)
Definition: commondefs.h:157
#define mGlobal(module)
Definition: commondefs.h:160
Attrib::DescSet * adsstored2d_
Definition: attribdescsetsholder.h:50
Manages attribute description set.
Definition: attribdescsetman.h:26
Set of attribute descriptions.
Definition: attribdescset.h:29
static DescSetsHolder * dsholder_
Definition: attribdescsetsholder.h:55
Pack to carry DescSet Managers for live attributes and DescSets for stored data, both in 2D and 3D...
Definition: attribdescsetsholder.h:31
#define mExp(module)
Definition: commondefs.h:156
const DescSetsHolder & DSHolder()
Attrib::DescSetMan * adsman3d_
Definition: attribdescsetsholder.h:49
DescSetsHolder & eDSHolder()
Attrib::DescSetMan * adsman2d_
Definition: attribdescsetsholder.h:48
Semblance Attribute.
Definition: attribdataholder.h:21
Attrib::DescSet * adsstored3d_
Definition: attribdescsetsholder.h:51

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