OpendTect  6.6
mpesetup.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: N. Hemstra
8  Date: March 2004
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "mpeenginemod.h"
16 #include "transl.h"
17 
18 
19 namespace MPE {
20 
25 mExpClass(MPEEngine) Setup
26 {
27 public:
28  Setup();
29  ~Setup();
30 
31  bool usePar(const IOPar&);
32  void fillPar(IOPar& par) const;
33 
34 protected:
36 
37 protected:
38 
39 };
40 
41 }; // namespace MPE
42 
43 
45 
52 public:
54  const char* defExtension() const { return "ts"; }
55 };
56 
57 
63 {
64 public:
66 
67  virtual const char* read(MPESetup&,Conn&) = 0;
69  virtual const char* write(const MPESetup&,Conn&) = 0;
71  virtual const char* warningMsg() const { return ""; }
72 
73  static bool retrieve(MPESetup&,const IOObj*,BufferString&);
76  static bool store(const MPESetup&,const IOObj*,BufferString&);
79 };
80 
81 
88 public:
90 
91  const char* read(MPESetup&,Conn&);
93  const char* write( const MPESetup&,Conn&);
95  const char* warningMsg() const { return warningmsg; }
96 
98 
99 };
100 
MPESetup
MPE::Setup MPESetup
Definition: mpesetup.h:41
Conn
Data connection.
Definition: conn.h:30
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
isTranslator
#define isTranslator(spec, clss)
Definition: transl.h:244
MPE::Setup
MPE Setup read/save.
Definition: mpesetup.h:26
mDefEmptyTranslatorConstructor
#define mDefEmptyTranslatorConstructor(spec, clss)
Definition: transl.h:281
MPE::Setup::usePar
bool usePar(const IOPar &)
MPESetupTranslator
Translator for MPE::Setup.
Definition: mpesetup.h:63
MPE::Setup::pars
IOPar & pars
Definition: mpesetup.h:35
MPE::Setup::Setup
Setup()
isTranslatorGroup
#define isTranslatorGroup(clss)
Definition: transl.h:220
MPE
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
MPESetupTranslatorGroup
TranslatorGroup for MPE::Setup.
Definition: mpesetup.h:51
dgbMPESetupTranslator::warningmsg
BufferString warningmsg
Definition: mpesetup.h:97
MPESetupTranslator::mDefEmptyTranslatorBaseConstructor
mDefEmptyTranslatorBaseConstructor(MPESetup) virtual const char *read(MPESetup &
MPESetupTranslator::store
static bool store(const MPESetup &, const IOObj *, BufferString &)
mDefEmptyTranslatorGroupConstructor
#define mDefEmptyTranslatorGroupConstructor(clss)
Definition: transl.h:269
dgbMPESetupTranslator::warningMsg
const char * warningMsg() const
Definition: mpesetup.h:95
IOObj
Definition: ioobj.h:58
TranslatorGroup
Group of Translators. Has a static factory.
Definition: transl.h:56
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
MPESetupTranslator::warningMsg
virtual const char * warningMsg() const
Definition: mpesetup.h:71
MPESetupTranslator::retrieve
static bool retrieve(MPESetup &, const IOObj *, BufferString &)
MPESetupTranslator::write
Conn &virtual const char * write(const MPESetup &, Conn &)=0
returns err msg or null on success
dgbMPESetupTranslator::write
isTranslator(dgb, MPESetup) public const char * write(const MPESetup &, Conn &)
< returns err msg or null on success
MPE::Setup::~Setup
~Setup()
Translator
I/O Interpreter class for a certain object type.
Definition: transl.h:123
transl.h
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
dgbMPESetupTranslator
MPESetupTranslator for dgbMPESetup.
Definition: mpesetup.h:87
MPE::Setup::fillPar
void fillPar(IOPar &par) const

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