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

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