OpendTect  6.6
prestackmutedeftransl.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 Bril
8  Date: Nov 2006
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 #include "prestackprocessingmod.h"
16 #include "transl.h"
17 
18 namespace PreStack { class MuteDef; }
19 
24 mExpClass(PreStackProcessing) MuteDefTranslatorGroup : public TranslatorGroup
25 { isTranslatorGroup(MuteDef)
26 public:
28 
29  const char* defExtension() const { return "mute"; }
30 };
31 
32 
37 mExpClass(PreStackProcessing) MuteDefTranslator : public Translator
39 public:
41 
42  virtual const char* read(PreStack::MuteDef&,Conn&) = 0;
44  virtual const char* write(const PreStack::MuteDef&,Conn&) = 0;
46 
47  static bool retrieve(PreStack::MuteDef&,const IOObj*,uiString&);
48  static bool store(const PreStack::MuteDef&,const IOObj*,
49  uiString&);
50 
51 private:
53 };
54 
55 
60 mExpClass(PreStackProcessing) dgbMuteDefTranslator : public MuteDefTranslator
61 { isTranslator(dgb,MuteDef)
62 public:
63 
65 
66  const char* read(PreStack::MuteDef&,Conn&);
67  const char* write(const PreStack::MuteDef&,Conn&);
68 
69  static const char* sKeyRefHor() { return "Reference Horizon"; }
70  static bool hasIOPar(int majorversion,int minorversion);
71 };
72 
73 
MuteDefTranslator::sSelObjNotMuteDef
static uiString sSelObjNotMuteDef()
Conn
Data connection.
Definition: conn.h:30
MuteDefTranslator::write
virtual mODTextTranslationClass(MuteDefTranslator) public const char * write(const PreStack::MuteDef &, Conn &)=0
< returns err msg or null on success
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
isTranslator
#define isTranslator(spec, clss)
Definition: transl.h:244
mDefEmptyTranslatorConstructor
#define mDefEmptyTranslatorConstructor(spec, clss)
Definition: transl.h:281
dgbMuteDefTranslator
dgb MuteDefTranslator
Definition: prestackmutedeftransl.h:61
MuteDefTranslatorGroup
TranslatorGroup for mute definition.
Definition: prestackmutedeftransl.h:25
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
isTranslatorGroup
#define isTranslatorGroup(clss)
Definition: transl.h:220
dgbMuteDefTranslator::sKeyRefHor
static const char * sKeyRefHor()
Definition: prestackmutedeftransl.h:69
mDefEmptyTranslatorGroupConstructor
#define mDefEmptyTranslatorGroupConstructor(clss)
Definition: transl.h:269
MuteDefTranslator
Translator for mute definition.
Definition: prestackmutedeftransl.h:38
IOObj
Definition: ioobj.h:58
TranslatorGroup
Group of Translators. Has a static factory.
Definition: transl.h:56
PreStack
Definition: synthseis.h:35
dgbMuteDefTranslator::write
isTranslator(dgb, MuteDef) public const char * write(const PreStack::MuteDef &, Conn &)
< returns err msg or null on success
MuteDefTranslator::store
static bool store(const PreStack::MuteDef &, const IOObj *, uiString &)
mDefEmptyTranslatorBaseConstructor
#define mDefEmptyTranslatorBaseConstructor(clss)
Definition: transl.h:275
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
dgbMuteDefTranslator::hasIOPar
static bool hasIOPar(int majorversion, int minorversion)
Translator
I/O Interpreter class for a certain object type.
Definition: transl.h:123
PreStack::MuteDef
NamedObject for definition of a mute function.
Definition: prestackmutedef.h:32
transl.h
MuteDefTranslator::retrieve
static bool retrieve(PreStack::MuteDef &, const IOObj *, uiString &)

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