OpendTect-6_4  6.4
nlamodel.h
Go to the documentation of this file.
1 #ifndef nlamodel_h
2 #define nlamodel_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: June 2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "nlamod.h"
16 #include "nladesign.h"
17 
21 {
22 public:
23 
24  virtual ~NLAModel() {}
25 
26  virtual const char* name() const = 0;
27  virtual const NLADesign& design() const = 0;
28  virtual NLAModel* clone() const = 0;
29  virtual float versionNr() const = 0;
30 
31  virtual IOPar& pars() = 0;
32  const IOPar& pars() const
33  { return const_cast<NLAModel*>
34  (this)->pars(); }
36 
37  virtual void dump(BufferString&) const = 0;
39 
40  virtual const char* nlaType( bool compact=true ) const
41  { return compact ? "NN"
42  : "Neural Network"; }
43 
44 };
45 
46 
47 mGlobal(NLA) bool isEmpty(const NLAModel* mdl);
48 
49 #endif
const IOPar & pars() const
Attrib set in/out.
Definition: nlamodel.h:32
#define mGlobal(module)
Definition: commondefs.h:163
Minimum Interface for NLA models.
Definition: nlamodel.h:20
Simple description of NLA design, viewed from user&#39;s perspective.
Definition: nladesign.h:28
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
virtual const char * nlaType(bool compact=true) const
Definition: nlamodel.h:40
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
#define mClass(module)
Definition: commondefs.h:164
bool isEmpty(const NLAModel *mdl)
virtual ~NLAModel()
Definition: nlamodel.h:24

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