OpendTect  6.3
attribdescsetman.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: Nanne Hemstra
8  Date: November 2001
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "attributeenginemod.h"
14 #include "dbkey.h"
15 
16 
17 namespace Attrib
18 {
19 
20 class DescSet;
21 
26 mExpClass(AttributeEngine) DescSetMan
27 {
28 public:
29 
30  DescSetMan(bool,DescSet* ads=0,bool destr_on_del=true );
31  ~DescSetMan();
32 
33  DescSet* descSet() { return ads_; }
34  const DescSet* descSet() const { return ads_; }
35  void setDescSet(DescSet*);
36 
37  bool is2D() const { return is2d_; }
38  bool isSaved() const { return !unsaved_; }
39  void setSaved( bool yn=true ) const
40  { const_cast<DescSetMan*>(this)->unsaved_ = !yn; }
41  bool& unSaved() { return unsaved_; }
43 
44  void fillHist();
45  IOPar& inputHistory() { return inpselhist_; }
46 
48 
49 protected:
50 
52  bool is2d_;
53  bool unsaved_;
55 
58 
59  void cleanHist(IOPar&,const DescSet&);
60 
61 };
62 
63 }; // namespace Attrib
#define mExpClass(module)
Definition: commondefs.h:157
bool destrondel_
Definition: attribdescsetman.h:54
DescSet * descSet()
Definition: attribdescsetman.h:33
Manages attribute description set.
Definition: attribdescsetman.h:26
Set of attribute descriptions.
Definition: attribdescset.h:29
bool unsaved_
Definition: attribdescsetman.h:53
void setSaved(bool yn=true) const
Definition: attribdescsetman.h:39
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
IOPar & inputHistory()
Definition: attribdescsetman.h:45
const DescSet * descSet() const
Definition: attribdescsetman.h:34
bool & unSaved()
Added for convenience in UI building.
Definition: attribdescsetman.h:41
DBKey attrsetid_
Definition: attribdescsetman.h:47
bool is2D() const
Definition: attribdescsetman.h:37
DescSet * ads_
Definition: attribdescsetman.h:51
bool isSaved() const
Definition: attribdescsetman.h:38
IOPar & steerselhist_
Definition: attribdescsetman.h:57
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
IOPar & inpselhist_
Definition: attribdescsetman.h:56
bool is2d_
Definition: attribdescsetman.h:52
Semblance Attribute.
Definition: attribdataholder.h:21

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