OpendTect  6.3
basiccompinfo.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: 12-3-2001
9  Contents: Component information
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "generalmod.h"
15 #include "namedobj.h"
16 #include "datachar.h"
17 
18 
22 {
23 public:
24  BasicComponentInfo( const char* nm=0 )
25  : NamedObject(nm)
26  , datatype(0) {}
28  : NamedObject((const char*)ci.name())
29  { *this = ci; }
31  {
32  if ( this == &ci ) return *this;
33  setName( ci.name() );
34  datatype = ci.datatype;
35  datachar = ci.datachar;
36  return *this;
37  }
38 
39  bool operator==( const BasicComponentInfo& ci ) const
40  {
41  return name() == ci.name()
42  && datatype == ci.datatype
43  && datachar == ci.datachar;
44  }
45 
46  int datatype;
48 
49 };
#define mExpClass(module)
Definition: commondefs.h:157
bool operator==(const BasicComponentInfo &ci) const
Definition: basiccompinfo.h:39
Info on one component.
Definition: basiccompinfo.h:21
BasicComponentInfo & operator=(const BasicComponentInfo &ci)
Definition: basiccompinfo.h:30
int datatype
Definition: basiccompinfo.h:46
BasicComponentInfo(const char *nm=0)
Definition: basiccompinfo.h:24
DataCharacteristics datachar
Definition: basiccompinfo.h:47
byte-level data characteristics of stored data.
Definition: datachar.h:35
object with a name.
Definition: namedobj.h:20
virtual const OD::String & name() const
Definition: namedobj.h:33
BasicComponentInfo(const BasicComponentInfo &ci)
Definition: basiccompinfo.h:27

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