OpendTect-6_4  6.4
attribdescsettr.h
Go to the documentation of this file.
1 #ifndef attribdescsettr_h
2 #define attribdescsettr_h
3 
4 /*@+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: May 2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 @$*/
14 
15 #include "attributeenginemod.h"
16 #include "transl.h"
17 #include "ctxtioobj.h"
18 #include "uistring.h"
19 
20 class Conn;
21 namespace Attrib { class DescSet; }
22 
28 { isTranslatorGroup(AttribDescSet)
29 public:
31 
32  virtual const char* defExtension() const { return "attr"; }
33 };
34 
35 
40 mExpClass(AttributeEngine) AttribDescSetTranslator : public Translator
42 public:
44 
45  virtual const char* read(Attrib::DescSet&,Conn&) = 0;
47  virtual const char* warningMsg() const = 0;
48  virtual const char* write(const Attrib::DescSet&,Conn&) = 0;
50 
51  static bool retrieve(Attrib::DescSet&,const char* fnm,
52  uiString&);
55  static bool retrieve(Attrib::DescSet&,const IOObj*,uiString&);
58  static bool store(const Attrib::DescSet&,const IOObj*,
59  uiString&);
61 };
62 
63 
68 mExpClass(AttributeEngine)
70 { isTranslator(dgb,AttribDescSet);
72 public:
73  mDefEmptyTranslatorConstructor(dgb,AttribDescSet)
74  const char* read(Attrib::DescSet&,Conn&);
75  const char* warningMsg() const {return warningmsg_.getFullString();}
76  const char* write(const Attrib::DescSet&,Conn&);
77 
79 };
80 
81 
82 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: ioobj.h:58
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Set of attribute descriptions.
Definition: attribdescset.h:35
Base Translator class for I/O of DescSet.
Definition: attribdescsettr.h:40
uiString warningmsg_
Definition: attribdescsettr.h:78
Definition: uistring.h:89
#define mDefEmptyTranslatorConstructor(spec, clss)
Definition: transl.h:267
#define mDefEmptyTranslatorGroupConstructor(clss)
Definition: transl.h:255
Group of Translators. Has a static factory.
Definition: transl.h:56
#define mDefEmptyTranslatorBaseConstructor(clss)
Definition: transl.h:261
Actual Translator class for I/O of DescSet.
Definition: attribdescsettr.h:68
I/O Interpreter class for a certain object type.
Definition: transl.h:123
Data connection.
Definition: conn.h:30
Translator group for I/O of DescSet.
Definition: attribdescsettr.h:27
#define isTranslatorGroup(clss)
Definition: transl.h:206
Semblance Attribute.
Definition: attribdataholder.h:25
#define isTranslator(spec, clss)
Definition: transl.h:230

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