OpendTect-6_4  6.4
attribdescsetman.h
Go to the documentation of this file.
1 #ifndef attribdescsetman_h
2 #define attribdescsetman_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: November 2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "attributeenginemod.h"
16 #include "multiid.h"
17 
18 
19 namespace Attrib
20 {
21 
22 class DescSet;
23 
28 mExpClass(AttributeEngine) DescSetMan
29 {
30 public:
31 
32  DescSetMan(bool,DescSet* ads=0,bool destr_on_del=true );
33  ~DescSetMan();
34 
35  DescSet* descSet() { return ads_; }
36  const DescSet* descSet() const { return ads_; }
37  void setDescSet(DescSet*);
38 
39  bool is2D() const { return is2d_; }
40  bool isSaved() const { return !unsaved_; }
41  void setSaved( bool yn=true ) const
42  { const_cast<DescSetMan*>(this)->unsaved_ = !yn; }
43  bool& unSaved() { return unsaved_; }
45 
46  void fillHist();
47  IOPar& inputHistory() { return inpselhist_; }
48 
50 
51 protected:
52 
54  bool is2d_;
55  bool unsaved_;
57 
60 
61  void cleanHist(IOPar&,const DescSet&);
62 
63 };
64 
65 }; // namespace Attrib
66 
67 #endif
#define mExpClass(module)
Definition: commondefs.h:160
bool destrondel_
Definition: attribdescsetman.h:56
DescSet * descSet()
Definition: attribdescsetman.h:35
Manages attribute description set.
Definition: attribdescsetman.h:28
Set of attribute descriptions.
Definition: attribdescset.h:35
bool unsaved_
Definition: attribdescsetman.h:55
void setSaved(bool yn=true) const
Definition: attribdescsetman.h:41
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
IOPar & inputHistory()
Definition: attribdescsetman.h:47
const DescSet * descSet() const
Definition: attribdescsetman.h:36
bool & unSaved()
Added for convenience in UI building.
Definition: attribdescsetman.h:43
MultiID attrsetid_
Definition: attribdescsetman.h:49
bool is2D() const
Definition: attribdescsetman.h:39
DescSet * ads_
Definition: attribdescsetman.h:53
bool isSaved() const
Definition: attribdescsetman.h:40
IOPar & steerselhist_
Definition: attribdescsetman.h:59
Compound key consisting of ints.
Definition: multiid.h:25
IOPar & inpselhist_
Definition: attribdescsetman.h:58
bool is2d_
Definition: attribdescsetman.h:54
Semblance Attribute.
Definition: attribdataholder.h:25

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