OpendTect-6_4  6.4
basiccompinfo.h
Go to the documentation of this file.
1 #ifndef basiccompinfo_h
2 #define basiccompinfo_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: 12-3-2001
10  Contents: Component information
11  RCS: $Id$
12 ________________________________________________________________________
13 
14 -*/
15 
16 #include "generalmod.h"
17 #include "namedobj.h"
18 #include "datachar.h"
19 
20 
24 {
25 public:
26  BasicComponentInfo( const char* nm=0 )
27  : NamedObject(nm)
28  , datatype(0) {}
30  : NamedObject((const char*)ci.name())
31  { *this = ci; }
33  {
34  if ( this == &ci ) return *this;
35  setName( ci.name() );
36  datatype = ci.datatype;
37  datachar = ci.datachar;
38  return *this;
39  }
40 
41  bool operator==( const BasicComponentInfo& ci ) const
42  {
43  return name() == ci.name()
44  && datatype == ci.datatype
45  && datachar == ci.datachar;
46  }
47 
48  int datatype;
50 
51 };
52 
53 
54 #endif
#define mExpClass(module)
Definition: commondefs.h:160
bool operator==(const BasicComponentInfo &ci) const
Definition: basiccompinfo.h:41
Info on one component.
Definition: basiccompinfo.h:23
BasicComponentInfo & operator=(const BasicComponentInfo &ci)
Definition: basiccompinfo.h:32
int datatype
Definition: basiccompinfo.h:48
BasicComponentInfo(const char *nm=0)
Definition: basiccompinfo.h:26
DataCharacteristics datachar
Definition: basiccompinfo.h:49
byte-level data characteristics of stored data.
Definition: datachar.h:37
Object with a name.
Definition: namedobj.h:35
virtual const OD::String & name() const
Definition: namedobj.h:47
BasicComponentInfo(const BasicComponentInfo &ci)
Definition: basiccompinfo.h:29

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