OpendTect-6_4  6.4
emstoredobjaccess.h
Go to the documentation of this file.
1 #ifndef emstoredobjaccess_h
2 #define emstoredobjaccess_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Feb 2016
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 #include "objectset.h"
18 #include "uistring.h"
19 class Executor;
20 
21 namespace EM
22 {
23 class EMObject;
24 class StoredObjAccessData;
25 class SurfaceIODataSelection;
26 
27 
36 { mODTextTranslationClass(StoredObjAccess)
37 public:
38 
39  StoredObjAccess();
40  StoredObjAccess(const MultiID&);
41  virtual ~StoredObjAccess();
42 
43  void setLoadHint(const SurfaceIODataSelection&);
44  bool set(const MultiID&);
45 
46  bool isReady(int iobj=-1) const;
47  bool isError(int iobj=-1) const;
48  float ratioDone(int iobj=-1) const;
49  uiString getError(int iobj=-1) const;
50 
51  bool finishRead();
52  Executor* reader();
53 
54  EMObject* object(int iobj=0);
55  const EMObject* object(int iobj=0) const;
56 
57  // Interesting for multi-read only
58  int size() const { return data_.size(); }
59  bool isEmpty() const { return data_.isEmpty(); }
60  bool add(const MultiID&);
61  void dismiss(const MultiID&);
62 
63 protected:
64 
67  StoredObjAccessData* get(const MultiID&);
68 
69 };
70 
71 
72 
73 } // namespace EM
74 
75 
76 #endif
#define mExpClass(module)
Definition: commondefs.h:160
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uistring.h:89
SurfaceIODataSelection * surfiodsel_
Definition: emstoredobjaccess.h:66
ObjectSet< StoredObjAccessData > data_
Definition: emstoredobjaccess.h:65
int size() const
Definition: emstoredobjaccess.h:58
Base class for all EarthModel objects.
Definition: emobject.h:158
bool isEmpty() const
Definition: emstoredobjaccess.h:59
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Surface I/O data selection.
Definition: emsurfaceiodata.h:62
Compound key consisting of ints.
Definition: multiid.h:25
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
Access to stored EM Objects.
Definition: emstoredobjaccess.h:35

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