OpendTect  6.6
probdenfunctr.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: Nanne Hemstra
8  Date: January 2010
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "geometrymod.h"
15 #include "transl.h"
16 #include "od_iosfwd.h"
17 
18 class IOObj;
19 class ProbDenFunc;
20 
21 
24 public:
26 
27  const char* defExtension() const { return "prdf"; }
28 
29 };
30 
31 
34 public:
35  ProbDenFuncTranslator(const char* nm,const char* unm);
36 
37  static ProbDenFunc* read(const IOObj&,uiString* emsg=0);
38  static bool write(const ProbDenFunc&,const IOObj&,
39  uiString* emsg=0);
40 
41  virtual ProbDenFunc* read(od_istream&) = 0;
42  virtual bool write(const ProbDenFunc&,od_ostream&) = 0;;
43 
44  bool binary_;
45 
46 };
47 
48 
51 public:
53 
54  ProbDenFunc* read(od_istream&);
55  bool write(const ProbDenFunc&,od_ostream&);
56 
57 };
58 
59 
ProbDenFuncTranslator
Definition: probdenfunctr.h:33
odProbDenFuncTranslator::write
isTranslator(od, ProbDenFunc) public bool write(const ProbDenFunc &, od_ostream &)
Geometry
Definition: arraytesselator.h:21
ProbDenFuncTranslator::write
virtual bool write(const ProbDenFunc &, od_ostream &)=0
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
od_istream
OD class for stream read common access to the std::cin.
Definition: od_istream.h:24
isTranslator
#define isTranslator(spec, clss)
Definition: transl.h:244
mDefEmptyTranslatorConstructor
#define mDefEmptyTranslatorConstructor(spec, clss)
Definition: transl.h:281
ProbDenFuncTranslator::write
static bool write(const ProbDenFunc &, const IOObj &, uiString *emsg=0)
ProbDenFuncTranslatorGroup
Definition: probdenfunctr.h:23
isTranslatorGroup
#define isTranslatorGroup(clss)
Definition: transl.h:220
ProbDenFuncTranslator::mODTextTranslationClass
mODTextTranslationClass(ProbDenFuncTranslator)
ProbDenFuncTranslator::ProbDenFuncTranslator
ProbDenFuncTranslator(const char *nm, const char *unm)
mDefEmptyTranslatorGroupConstructor
#define mDefEmptyTranslatorGroupConstructor(clss)
Definition: transl.h:269
IOObj
Definition: ioobj.h:58
TranslatorGroup
Group of Translators. Has a static factory.
Definition: transl.h:56
ProbDenFunc
Base class for Probability Density Functions.
Definition: probdenfunc.h:31
ProbDenFuncTranslator::read
static ProbDenFunc * read(const IOObj &, uiString *emsg=0)
odProbDenFuncTranslator
Definition: probdenfunctr.h:50
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
od_iosfwd.h
Translator
I/O Interpreter class for a certain object type.
Definition: transl.h:123
transl.h
ProbDenFuncTranslator::binary_
bool binary_
default: false
Definition: probdenfunctr.h:42
od
od
Definition: strattransl.h:17
od_ostream
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
ProbDenFuncTranslator::read
virtual ProbDenFunc * read(od_istream &)=0

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