OpendTect  6.3
probemanager.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: Satyaki Maitra
8  Date: October 2016
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "generalmod.h"
14 #include "saveablemanager.h"
15 #include "probe.h"
16 
17 
26 public:
27 
28  ConstRefMan<Probe> fetch(const ObjID&,uiRetVal&) const;
29  RefMan<Probe> fetchForEdit(const ObjID&,uiRetVal&);
30  ConstRefMan<Probe> fetch(const ObjID&) const;
31  RefMan<Probe> fetchForEdit(const ObjID&);
32 
33  ObjID getID(const Probe&) const;
34 
35  uiRetVal store(const Probe&,const IOPar* ioobjpars=0) const;
37  uiRetVal store(const Probe&,const ObjID&,
38  const IOPar* ioobjpars=0) const;
39  uiRetVal save(const ObjID&) const;
40  uiRetVal save(const Probe&) const;
41  bool needsSave(const ObjID&) const;
42  bool needsSave(const Probe&) const;
43 
44  // Use MonitorLock when iterating
45  ConstRefMan<Probe> get(IdxType) const;
46  RefMan<Probe> getForEdit(IdxType);
47 
48 protected:
49 
50  ProbeManager();
51  ~ProbeManager();
52 
53  virtual Saveable* getSaver(const SharedObject&) const;
54 
55  template<class T> T doFetch(const ObjID&,uiRetVal&) const;
56  Probe* gtProbe(const ObjID&) const;
57 
58 public:
59 
61 
62 };
63 
64 
67 {
69 }
#define mExpClass(module)
Definition: commondefs.h:157
size_type IdxType
Definition: saveablemanager.h:47
short IdxType
Definition: seisblocksdata.h:39
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
#define mDeclareSaveableManagerInstance(typ)
Definition: saveablemanager.h:145
Definition: sharedobject.h:18
Manages all stored Pick::Set&#39;s.
Definition: probemanager.h:24
Object that can be saved at any time.
Definition: saveable.h:23
ProbeManager & ProbeMGR()
access to the singleton Pick Set Manager
Definition: probemanager.h:66
Base class for managers of Saveable objects: loading and storing.
Definition: saveablemanager.h:41
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Definition: uistring.h:299
static ProbeManager & getInstance()
Definition: probe.h:82

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