OpendTect  6.3
emstoredobjaccess.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: Bert
8  Date: Feb 2016
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "earthmodelmod.h"
15 #include "objectset.h"
16 #include "uistring.h"
17 class Executor;
18 
19 namespace EM
20 {
21 class EMObject;
22 class StoredObjAccessData;
23 class SurfaceIODataSelection;
24 
25 
34 { mODTextTranslationClass(StoredObjAccess)
35 public:
36 
37  StoredObjAccess();
38  StoredObjAccess(const DBKey&);
39  virtual ~StoredObjAccess();
40 
41  void setLoadHint(const SurfaceIODataSelection&);
42  bool set(const DBKey&);
43 
44  bool isReady(int iobj=-1) const;
45  bool isError(int iobj=-1) const;
46  float ratioDone(int iobj=-1) const;
47  uiString getError(int iobj=-1) const;
48 
49  bool finishRead();
50  Executor* reader();
51 
52  EMObject* object(int iobj=0);
53  const EMObject* object(int iobj=0) const;
54 
55  // Interesting for multi-read only
56  int size() const { return data_.size(); }
57  bool isEmpty() const { return data_.isEmpty(); }
58  bool add(const DBKey&);
59  void dismiss(const DBKey&);
60 
61 protected:
62 
65  StoredObjAccessData* get(const DBKey&);
66 
67 };
68 
69 
70 
71 } // namespace EM
#define mExpClass(module)
Definition: commondefs.h:157
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Definition: uistring.h:88
SurfaceIODataSelection * surfiodsel_
Definition: emstoredobjaccess.h:64
ObjectSet< StoredObjAccessData > data_
Definition: emstoredobjaccess.h:63
int size() const
Definition: emstoredobjaccess.h:56
Base class for all EarthModel objects.
Definition: emobject.h:117
bool isEmpty() const
Definition: emstoredobjaccess.h:57
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:23
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
Surface I/O data selection.
Definition: emsurfaceiodata.h:60
Specification to enable chunkwise execution of a process.
Definition: executor.h:38
Access to stored EM Objects.
Definition: emstoredobjaccess.h:33

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