OpendTect-6_4  6.4
attribfactory.h
Go to the documentation of this file.
1 #ifndef attribfactory_h
2 #define attribfactory_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 07-10-1999
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "attributeenginemod.h"
16 #include "sets.h"
17 
18 namespace Attrib
19 {
20 
21 class Desc;
22 class Provider;
23 
24 typedef Provider* (*ProviderCreater)(Desc&);
25 
30 mExpClass(AttributeEngine) ProviderFactory
31 {
32 public:
33  ProviderFactory();
34  ~ProviderFactory();
35 
36  /*Interface from attribs' initClass() */
37  void addDesc( Desc*, ProviderCreater );
38 
39  int size() const { return descs_.size();}
40  const Desc& getDesc( int idx ) const { return *descs_[idx]; }
41  const Desc* getDesc(const char*) const;
42 
43  Provider* create( Desc& ) const;
44  Desc* createDescCopy( const char* nm ) const;
45  void updateAllDescsDefaults();
46 
47 protected:
48 
49  int indexOf( const char* ) const;
52 
53 };
54 
55 mGlobal(AttributeEngine) extern ProviderFactory& PF();
56 
57 }; //Namespace
58 
59 #endif
#define mExpClass(module)
Definition: commondefs.h:160
int size() const
Definition: attribfactory.h:39
Provider *(* ProviderCreater)(Desc &)
Definition: attribfactory.h:24
#define mGlobal(module)
Definition: commondefs.h:163
ObjectSet< Desc > descs_
Definition: attribfactory.h:50
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
Set of pointers to objects.
Definition: commontypes.h:32
FixedString Desc()
Definition: keystrs.h:62
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected.
Definition: attribdesc.h:89
const Desc & getDesc(int idx) const
Definition: attribfactory.h:40
static uiHor3DInterpol * create(uiParent *)
ProviderFactory & PF()
Provides the actual output to ...
Definition: attribprovider.h:44
Factory for attribute providers.
Definition: attribfactory.h:30
TypeSet< ProviderCreater > creaters_
Definition: attribfactory.h:51
Semblance Attribute.
Definition: attribdataholder.h:25

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